aboutsummaryrefslogtreecommitdiff
path: root/rng.cpp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-07 22:06:29 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-07 22:06:29 +0200
commit70a7537584889cf612ddea83eb65fd42818f6e5e (patch)
tree7d84990995b5d3163b193078058736a46d62b089 /rng.cpp
parent241518f369efce64046be36a15fcb722b00e9477 (diff)
Make code work on Linux and older compilers
Diffstat (limited to 'rng.cpp')
-rw-r--r--rng.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/rng.cpp b/rng.cpp
index aba1c02..a6c61f5 100644
--- a/rng.cpp
+++ b/rng.cpp
@@ -4,6 +4,12 @@
#include <cassert>
#include "rng.h"
+#ifdef __APPLE__
+#include <cstdlib>
+#else
+#include <bsd/stdlib.h>
+#endif
+
using namespace std;