diff options
-rw-r--r-- | life2x/life2x.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/life2x/life2x.c b/life2x/life2x.c index fda90b8..2ae164e 100644 --- a/life2x/life2x.c +++ b/life2x/life2x.c @@ -12,6 +12,11 @@ #include <stdlib.h> /* for random() */ #include <time.h> /* for clock() */ +#ifdef _WIN32 /* Windows doesn't have these named correctly ;) */ +# define random rand +# define srandom srand +#endif + #define MAXSIZE 1024 #define DEFAULT_DIM 16 |