diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-12-18 18:57:13 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-12-18 18:57:13 +0000 |
commit | aa82236dd093743bd2973f8b61127582aaf6e96f (patch) | |
tree | dc74f2de6e61dc04861b8d6df53daf8ed6feb2ee /sonogram~/sonogram~-yves.c | |
parent | b13e2d6c3a525918ed0816c41433509477c9912a (diff) |
lots of MinGW fixes for RC6
svn path=/trunk/externals/unauthorized/; revision=4250
Diffstat (limited to 'sonogram~/sonogram~-yves.c')
-rw-r--r-- | sonogram~/sonogram~-yves.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sonogram~/sonogram~-yves.c b/sonogram~/sonogram~-yves.c index 59cbeed..d2ce944 100644 --- a/sonogram~/sonogram~-yves.c +++ b/sonogram~/sonogram~-yves.c @@ -42,16 +42,13 @@ #endif #include <ctype.h> #include <pthread.h> -#ifdef UNIX -#include <unistd.h> -#endif -#ifdef NT +#ifdef WIN32 #define random rand +#define usleep(a) _sleep(a/1000) +#include <io.h> #include <windows.h> -static int usleep (unsigned int us) { - Sleep((long)(us/1000.)); - return 0; -} +#else +#include <unistd.h> #endif #include <math.h> |