diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-08-16 09:08:13 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-08-16 09:08:13 -0700 |
commit | 7e689f27b5ddcf060334ce753ec8d3cf850e9b9a (patch) | |
tree | 73bca5612f938a73b95f8a344e75fc67e32a47ce /cmake | |
parent | 1e0a12429afdddcf56d525d5464213dbe1e20c9f (diff) | |
parent | f65a6f2e2d61875668b0a5ef07495f8558f6dce8 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/msvc/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/msvc/config.h b/cmake/msvc/config.h index 50515104db..99a2ea0f89 100644 --- a/cmake/msvc/config.h +++ b/cmake/msvc/config.h @@ -62,4 +62,7 @@ static inline float rintf(float x){return (x > 0.0f)? floorf(x + 0.5f) : ceilf(x static inline long int random (void) { return rand(); } static inline void srandom (unsigned int seed) { srand(seed); } +#define srand48(seed) srand(seed) +#define drand48() (double(rand()) / RAND_MAX) + #endif // _MSC_CONFIG_H_ ] |