diff options
author | Allen Winter <allen.winter@kdab.com> | 2015-05-27 17:28:43 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2015-05-27 17:28:43 -0400 |
commit | f8494c4e6820d443b47e2bea547ca4d0e217f385 (patch) | |
tree | ddffb0c78f4fb245829337c9a429e7c772641d8b /config.h.cmake | |
parent | 346cc9073d9a55a2e0b6d69c25bba222ea69361d (diff) | |
download | libical-git-f8494c4e6820d443b47e2bea547ca4d0e217f385.tar.gz |
CMake Configure fixes for Windows builds with MSVC and MinGW
Diffstat (limited to 'config.h.cmake')
-rwxr-xr-x[-rw-r--r--] | config.h.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake index 4061e731..0d567369 100644..100755 --- a/config.h.cmake +++ b/config.h.cmake @@ -288,8 +288,10 @@ typedef unsigned int wint_t; #endif #if !defined(HAVE_NANOSLEEP) && !defined(HAVE_USLEEP) +#if !defined(_WIN32) #error "No function for high resolution timing available" #endif +#endif /* stat: function to get status info on a file */ #if defined(HAVE__STAT) @@ -447,8 +449,10 @@ typedef ssize_t IO_SSIZE_T; /* alarm - function to set and alarm for delivering a signal */ #if defined(HAVE_ALARM) +#if defined(HAVE_UNISTD_H) #include <unistd.h> #endif +#endif /* signal - signal handling function */ #if defined(HAVE_SIGNAL) @@ -495,6 +499,11 @@ typedef ssize_t IO_SSIZE_T; #define MAXPATHLEN 1024 #endif +/* MIN macro */ +#if !defined(MIN) +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif + /* Unused argument macro */ #if !defined(_unused) #if defined(__LCLINT__) || defined(S_SPLINT_S) |