- Timestamp:
- Jan 12, 2004, 3:01:40 PM (18 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/configure.ac
r337 r338 31 31 AC_CHECK_HEADERS(inttypes.h endian.h) 32 32 AC_CHECK_FUNCS(vsnprintf getenv putenv strcasecmp usleep gettimeofday) 33 case "${target_os}" in 34 *mingw32*|*cygwin*) 35 AC_CHECK_LIB(kernel32, Sleep, 36 [AC_DEFINE(HAVE_KERNEL32_SLEEP, 1, [Define if you have Windows' Sleep])]) 37 ;; 38 esac 33 AC_MSG_CHECKING(for Sleep) 34 AC_TRY_COMPILE([#include <windows.h>],[Sleep(42);], 35 [AC_MSG_RESULT(yes) 36 AC_DEFINE(HAVE_SLEEP, 1, [Define if you have Windows' Sleep])], 37 [AC_MSG_RESULT(no)]) 39 38 AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm") 40 39 -
libcaca/trunk/src/time.c
r337 r338 47 47 #if defined(HAVE_USLEEP) 48 48 usleep(usec); 49 #elif defined(HAVE_ KERNEL32_SLEEP)49 #elif defined(HAVE_SLEEP) 50 50 Sleep(usec / 1000); 51 51 #else
Note: See TracChangeset
for help on using the changeset viewer.