summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_portability.h
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2008-01-09 11:23:25 +0000
committerRob Richards <rrichards@php.net>2008-01-09 11:23:25 +0000
commit685a7c9a3a9f8a062183bd433c979b54ff70c3a2 (patch)
tree9c4920c61355bcf573cb6564207702c3f7ebe217 /ext/mysqlnd/mysqlnd_portability.h
parentaeda51223ca7808e4fb07c18e3fa9a530c0e9ac2 (diff)
downloadphp-git-685a7c9a3a9f8a062183bd433c979b54ff70c3a2.tar.gz
fix win32 compile
Diffstat (limited to 'ext/mysqlnd/mysqlnd_portability.h')
-rw-r--r--ext/mysqlnd/mysqlnd_portability.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/mysqlnd/mysqlnd_portability.h b/ext/mysqlnd/mysqlnd_portability.h
index 687c6d9b1f..049aa9707a 100644
--- a/ext/mysqlnd/mysqlnd_portability.h
+++ b/ext/mysqlnd/mysqlnd_portability.h
@@ -132,7 +132,11 @@ typedef signed int int64;
#elif SIZEOF_LONG == 8
typedef signed long int64;
#elif SIZEOF_LONG_LONG == 8
+#ifdef PHP_WIN32
+typedef __int64 int64;
+#else
typedef signed long long int64;
+#endif
#else
#error "Neither int nor long nor long long is of 8 bytes width"
#endif
@@ -147,7 +151,11 @@ typedef unsigned int uint64;
#elif SIZEOF_LONG == 8
typedef unsigned long uint64;
#elif SIZEOF_LONG_LONG == 8
+#ifdef PHP_WIN32
+typedef unsigned __int64 uint64;
+#else
typedef unsigned long long uint64;
+#endif
#else
#error "Neither int nor long nor long long is of 8 bytes width"
#endif
@@ -160,8 +168,6 @@ typedef unsigned long long uint64;
#ifndef L64
#define L64(x) x##i64
#endif
-typedef __int64 int64;
-typedef unsigned __int64 uint64;
#else
#define MYSQLND_LLU_SPEC "%llu"
#define MYSQLND_LL_SPEC "%lld"