diff options
Diffstat (limited to 'docs/examples/userguide/external_C_code/platform_adaptation.pyx')
-rw-r--r-- | docs/examples/userguide/external_C_code/platform_adaptation.pyx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/userguide/external_C_code/platform_adaptation.pyx b/docs/examples/userguide/external_C_code/platform_adaptation.pyx index fa193f83d..0beece8f4 100644 --- a/docs/examples/userguide/external_C_code/platform_adaptation.pyx +++ b/docs/examples/userguide/external_C_code/platform_adaptation.pyx @@ -1,9 +1,8 @@ cdef extern from *: """ #if defined(_WIN32) || defined(MS_WINDOWS) || defined(_MSC_VER) - #define WIN32_LEAN_AND_MEAN - #include <windows.h> - #define myapp_sleep(m) Sleep(m) + #include "stdlib.h" + #define myapp_sleep(m) _sleep(m) #else #include <unistd.h> #define myapp_sleep(m) ((void) usleep((m) * 1000)) |