summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-08-16 09:19:41 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-08-16 09:19:41 -0700
commita0ff8dcab22843e397fab8cc34932ac44bcc1a94 (patch)
tree52304b9a9923191ba0c16768b1f8174fae99e938 /cmake
parentb15d2d335ac0310cfb9fc5c966d61d8c9e96e849 (diff)
parent7e689f27b5ddcf060334ce753ec8d3cf850e9b9a (diff)
Merge branch 'next' into next-qt5
Diffstat (limited to 'cmake')
-rw-r--r--cmake/msvc/config.h3
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_ ]