summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-08-16 08:13:41 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-08-16 08:13:41 -0700
commitcd40a9b64622141f64d5cc31334419371ddf5613 (patch)
treee22760a6d1346bcc43156435901171399ba61e23 /cmake
parent59daaff0d9d04373d3a6b14ea7b46e080bad7a1e (diff)
parenta981e6a18c4f28cc6058fef4167c01ad3dc7d58a (diff)
Merge remote-tracking branch 'josh/3710_win_fixes' into maint
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_ ]