Mercurial > hg > nnchat
comparison main.c @ 533:52c56ada3816
Fix Win32/MinGW cross-compilation target to work with Debian's gcc-mingw-w64
package, thus upgrading to a new version of MinGW and GCC. Yay.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 07 Jun 2012 03:16:39 +0300 |
parents | cfab338d3c9e |
children | 379e361f1144 |
comparison
equal
deleted
inserted
replaced
532:cfab338d3c9e | 533:52c56ada3816 |
---|---|
10 #include "th_config.h" | 10 #include "th_config.h" |
11 #include <time.h> | 11 #include <time.h> |
12 #include <errno.h> | 12 #include <errno.h> |
13 #ifdef __WIN32 | 13 #ifdef __WIN32 |
14 #include <shlwapi.h> | 14 #include <shlwapi.h> |
15 #include <shfolder.h> | |
16 #define srandom srand | |
17 #define random rand | |
15 #else | 18 #else |
16 #include <sys/wait.h> | 19 #include <sys/wait.h> |
17 #endif | 20 #endif |
18 | 21 |
19 #ifdef __WIN32 | 22 #ifdef __WIN32 |