37 |
|
|
38 |
#if defined(WIN32) |
#if defined(WIN32) |
39 |
#include <windows.h> |
#include <windows.h> |
40 |
|
|
41 |
|
// modern MinGW has usleep |
42 |
|
#if __MINGW32_MAJOR_VERSION < 3 || \ |
43 |
|
(__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION < 15) |
44 |
#define usleep(a) Sleep(a/1000) |
#define usleep(a) Sleep(a/1000) |
45 |
|
#endif |
46 |
|
|
47 |
#define sleep(a) Sleep(a*1000) |
#define sleep(a) Sleep(a*1000) |
48 |
typedef unsigned int uint; |
typedef unsigned int uint; |
49 |
// FIXME: define proper functions which do proper alignement under Win32 |
// FIXME: define proper functions which do proper alignement under Win32 |