mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Merge pull request #34 from janisozaur/patch-1
Add missing include guard
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
// Stub for just what we need
|
||||
|
||||
#ifndef VSTDLIB_RANDOM_H
|
||||
#define VSTDLIB_RANDOM_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
inline void WeakRandomSeed( int x ) { srand(x); }
|
||||
@@ -12,3 +15,5 @@ inline int WeakRandomInt( int nMin, int nMax )
|
||||
return nMin + rand() % ( nMax - nMin + 1 );
|
||||
}
|
||||
|
||||
#endif // VSTDLIB_RANDOM_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user