summaryrefslogtreecommitdiff
path: root/include/llvm/Support/DataTypes.h.cmake
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-07-04 14:12:25 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-07-04 14:12:25 +0000
commit98abba7b661502f71a090ab254fb3f0db248c4c6 (patch)
tree22aedaf4b1411d08dfcf12a089e4a6a9bfb8cd70 /include/llvm/Support/DataTypes.h.cmake
parentf349a6e9e6ee0b589c403e0c5785266da121d05c (diff)
downloadllvm-98abba7b661502f71a090ab254fb3f0db248c4c6.tar.gz
llvm-98abba7b661502f71a090ab254fb3f0db248c4c6.tar.bz2
llvm-98abba7b661502f71a090ab254fb3f0db248c4c6.tar.xz
Supporting ssize_t on WIN64 with its proper size. Patch thanks to David Cournapeau!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DataTypes.h.cmake')
-rw-r--r--include/llvm/Support/DataTypes.h.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Support/DataTypes.h.cmake b/include/llvm/Support/DataTypes.h.cmake
index 7484abd368..1dcec0588f 100644
--- a/include/llvm/Support/DataTypes.h.cmake
+++ b/include/llvm/Support/DataTypes.h.cmake
@@ -101,7 +101,11 @@ typedef short int16_t;
typedef unsigned short uint16_t;
typedef signed char int8_t;
typedef unsigned char uint8_t;
-typedef signed int ssize_t;
+#if defined(_WIN64)
+ typedef signed __int64 ssize_t;
+#else
+ typedef signed int ssize_t;
+#endif
#ifndef INT8_MAX
# define INT8_MAX 127
#endif