Avoid Win32 functions
[git/cygwin-packages/libcaca.git] / 0.99.19-cygwin-no-win32.patch
CommitLineData
eeb16c88
YS
1--- origsrc/libcaca-0.99.beta19/caca/time.c 2012-12-28 11:34:08.000000000 -0600
2+++ src/libcaca-0.99.beta19/caca/time.c 2014-08-28 03:11:49.790176200 -0500
3@@ -35,7 +35,7 @@
4
5 void _caca_sleep(int usec)
6 {
7-#if defined(HAVE_SLEEP)
8+#if defined(USE_WIN32)
9 Sleep((usec + 500) / 1000);
10 #elif defined(HAVE_USLEEP)
11 usleep(usec);
12--- origsrc/libcaca-0.99.beta19/src/cacaview.c 2012-12-28 11:46:24.000000000 -0600
13+++ src/libcaca-0.99.beta19/src/cacaview.c 2014-08-28 03:12:10.433797600 -0500
14@@ -18,7 +18,7 @@
15 # include <stdlib.h>
16 #endif
17
18-#if defined(HAVE_SLEEP)
19+#if defined(USE_WIN32)
20 # include <windows.h>
21 #endif
22
This page took 0.022363 seconds and 5 git commands to generate.