X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01bc089cd2aacce9da21d96a4dd6562e9c5d6cb1..80d895cd3f624f28424cc45b9b516bf439da9c19:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 79c2431059..e9510f7235 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -58,28 +58,28 @@ #if !defined(HAVE_USLEEP) && \ (defined(__SUN__) && !defined(__SunOs_5_6) && \ !defined(__SunOs_5_7) && !defined(__SUNPRO_CC)) || \ - defined(__osf__) + defined(__osf__) || defined(__EMX__) extern "C" { #ifdef __SUN__ int usleep(unsigned int usec); #else // !Sun - void usleep(unsigned long usec); - #endif // Sun/!Sun + #ifdef __EMX + /* I copied this from the XFree86 diffs. AV. */ + #define INCL_DOSPROCESS + #include + void usleep(unsigned long delay) + { + DosSleep(delay ? (delay/1000l) : 1l); + } + #else + void usleep(unsigned long usec); + #endif + #endif // Sun/EMX/Something else }; +#define HAVE_USLEEP 1 #endif // Unices without usleep() -#ifdef __EMX__ - /* I copied this from the XFree86 diffs. AV. */ -extern void DosSleep(unsigned long); -#define INCL_DOSPROCESS -#include -void usleep(unsigned long delay) -{ - DosSleep(delay ? (delay/1000l) : 1l); -} -#endif - // ============================================================================ // implementation // ============================================================================