summaryrefslogtreecommitdiff
path: root/cmake/msvc/config.h
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-09-12 14:16:50 -0600
committerSebastian Koslowski <koslowski@kit.edu>2016-09-12 14:19:29 -0600
commitf7cdfff6a85ce52b1d7c0b5131645fcb77405fe8 (patch)
tree908af9bf8d1c512e22116cb3afbc89eb5883cc93 /cmake/msvc/config.h
parenta867a290194228d09ba93f0f46e3a4e4523f5396 (diff)
parentaf4323d1e471476efa255e3df745397f7c8a1b71 (diff)
Merge remote-tracking branch 'upstream/next' into gtk3
Diffstat (limited to 'cmake/msvc/config.h')
-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_ ]