diff options
author | Allen Winter <allen.winter@kdab.com> | 2015-05-27 07:11:43 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2015-05-27 07:11:43 -0400 |
commit | 767732f19fd473e86532075d9b8e753544b08e3f (patch) | |
tree | 42df5f0c8754fdb6360bb5d9b40e3e3fb5d8397c /config.h.cmake | |
parent | f4f1cf6c5bb6cd352f6dd9bfb081dd485f52594b (diff) | |
download | libical-git-767732f19fd473e86532075d9b8e753544b08e3f.tar.gz |
Sleep vs. sleep config
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/config.h.cmake b/config.h.cmake index 8276ef37..4061e731 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -42,12 +42,6 @@ /* Define to 1 if you have the <pthread.h> header file. */ #cmakedefine HAVE_PTHREAD_H 1 -/* Define to 1 if you have the Windows `Sleep' function. */ -#cmakedefine HAVE_WINSLEEP 1 - -/* Define to 1 if you have the Unix `sleep' function. */ -#cmakedefine HAVE_UNIXSLEEP 1 - /* Define to 1 if you have the `nanosleep' function. */ #cmakedefine HAVE_NANOSLEEP 1 @@ -273,19 +267,15 @@ typedef unsigned int wint_t; #include <stdio.h> /* sleep: function to sleep for a specified time */ -#if defined(HAVE_WINSLEEP) +#if defined(_WIN32) #include <windows.h> #if defined(sleep) #undef sleep #endif #define sleep(n) (Sleep((n)*1000)) #else -#if !defined(HAVE_UNIXSLEEP) -#error "No function to go to sleep available" -#else #include <unistd.h> #endif -#endif /* nanosleep: function for high resolution sleeping */ #if defined(HAVE_NANOSLEEP) |