summaryrefslogtreecommitdiff
path: root/cpp/include/qpid/sys/windows
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-05-18 02:14:07 +0000
committerTed Ross <tross@apache.org>2011-05-18 02:14:07 +0000
commiteca0963bf440a08ed4ee7abc2ea66cc50fa01f43 (patch)
tree2a530f3a690e6bafca5819ee90fe2b4427e603a4 /cpp/include/qpid/sys/windows
parent111effbd4a988a0fc96d00034f4662ba6c7ebb9f (diff)
downloadqpid-python-eca0963bf440a08ed4ee7abc2ea66cc50fa01f43.tar.gz
QPID-2905 - Code modifications to enable Windows builds with the mingw32 compiler.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1104662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid/sys/windows')
-rwxr-xr-xcpp/include/qpid/sys/windows/IntegerTypes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/include/qpid/sys/windows/IntegerTypes.h b/cpp/include/qpid/sys/windows/IntegerTypes.h
index ece1a618e9..fff320bc96 100755
--- a/cpp/include/qpid/sys/windows/IntegerTypes.h
+++ b/cpp/include/qpid/sys/windows/IntegerTypes.h
@@ -22,13 +22,17 @@
*/
typedef unsigned char uint8_t;
-typedef char int8_t;
typedef unsigned short uint16_t;
typedef short int16_t;
typedef unsigned int uint32_t;
typedef int int32_t;
+#if defined(_MSC_VER)
+typedef char int8_t;
typedef unsigned __int64 uint64_t;
typedef __int64 int64_t;
+#else
+#include <stdint.h>
+#endif
// Visual Studio doesn't define other common types, so set them up here too.
typedef unsigned int uint;