include win32 build too

svn-id: r38210
This commit is contained in:
Paweł Kołodziejski 2009-02-15 10:04:29 +00:00
parent 311344b445
commit 25aaf97300
2 changed files with 12 additions and 10 deletions

View File

@ -36,17 +36,17 @@
#include "sci/include/sci_widgets.h"
#include "sci/include/reg_t_hashmap.h"
#ifdef _MSC_VER
# include <mmsystem.h>
#endif
#ifdef _WIN32
# include <windows.h>
# include <io.h>
#endif
# ifdef sleep
# undef sleep
# endif
#ifdef _MSC_VER
# include <mmsystem.h>
# define sleep(x) \
do { \
if (x == 0) { \

View File

@ -38,6 +38,13 @@
# include <mmsystem.h>
# include <sys/types.h>
# include <sys/stat.h>
#endif
#ifdef _WIN32
# include <windows.h>
void usleep (long usec);
# ifdef sleep
# undef sleep
# endif
@ -54,13 +61,8 @@
fprintf(stderr, "timeEndPeriod(1) failed\n"); \
} \
} while (0);
#else
#ifdef _WIN32
# include <windows.h>
# include <win32/usleep.h>
# include <win32/sci_win32.h>
#endif
#endif
#if !defined(HAVE_FNMATCH) && !defined(_MSC_VER)
# include <beos/fnmatch.h>
#endif