summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/functionrandom.cpp4
-rw-r--r--src/main.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/functionrandom.cpp b/src/functionrandom.cpp
index ec302b3..5599310 100644
--- a/src/functionrandom.cpp
+++ b/src/functionrandom.cpp
@@ -4,6 +4,10 @@
4 4
5#include <stdlib.h> 5#include <stdlib.h>
6 6
7#ifdef WIN32
8#define random() rand()
9#endif
10
7FunctionRandom::FunctionRandom() 11FunctionRandom::FunctionRandom()
8{ 12{
9} 13}
diff --git a/src/main.cpp b/src/main.cpp
index 1f532d9..5b91861 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6,6 +6,10 @@
6#include <stdlib.h> 6#include <stdlib.h>
7#include <time.h> 7#include <time.h>
8 8
9#ifdef WIN32
10#define srandom( x ) srand( x )
11#endif
12
9#include <bu/sio.h> 13#include <bu/sio.h>
10using namespace Bu; 14using namespace Bu;
11 15