aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-22 08:44:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-22 13:01:36 +0200
commit8ff6a7a8502a81944ce422c09910e9eb2bed878a (patch)
tree9b773c64b5ae97e774b51ad74f8c98ba5059f1bc /include
parentdbf3cdecda66e9784bcd9403881922515ce86147 (diff)
downloadlibssh-8ff6a7a8502a81944ce422c09910e9eb2bed878a.tar.gz
libssh-8ff6a7a8502a81944ce422c09910e9eb2bed878a.tar.xz
libssh-8ff6a7a8502a81944ce422c09910e9eb2bed878a.zip
cmake: Check for _strtoui64() on Windows.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/priv.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index e27c66a0..abf307ad 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -31,6 +31,18 @@
#include "config.h"
+#if !defined(HAVE_STRTOULL)
+# if defined(HAVE___STRTOULL)
+# define strtoull __strtoull
+# elif defined(HAVE__STRTOUI64)
+# define strtoull _strtoui64
+# elif defined(__hpux) && defined(__LP64__)
+# define strtoull strtoul
+# else
+# error "no strtoull function found"
+# endif
+#endif /* !defined(HAVE_STRTOULL) */
+
#ifdef _WIN32
/* Imitate define of inttypes.h */
@@ -46,16 +58,6 @@
# endif /* __WORDSIZE */
# endif /* PRIu64 */
-#if !defined(HAVE_STRTOULL)
-# if defined(HAVE___STRTOULL)
-# define strtoull __strtoull
-# elif defined(__hpux) && defined(__LP64__)
-# define strtoull strtoul
-# else
-# error "no strtoull function found"
-# endif
-#endif /* !defined(HAVE_STRTOULL) */
-
# ifdef _MSC_VER
# include <stdio.h>
@@ -65,9 +67,6 @@
# define strcasecmp _stricmp
# define strncasecmp _strnicmp
-# if !defined(HAVE_STRTOULL)
-# define strtoull _strtoui64
-# endif
# define isblank(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n' || (ch) == '\r')
# define usleep(X) Sleep(((X)+1000)/1000)