diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-07-04 14:12:25 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-07-04 14:12:25 +0000 |
| commit | 7c475b7d9794c34178334bcc345a1631f84c7468 (patch) | |
| tree | 6b7555f915b51163cc41cebffca6cdd0bfd8ea88 | |
| parent | 717e0cd2a7ecc05732bfad428103c1ddea2f5745 (diff) | |
| download | bcm5719-llvm-7c475b7d9794c34178334bcc345a1631f84c7468.tar.gz bcm5719-llvm-7c475b7d9794c34178334bcc345a1631f84c7468.zip | |
Supporting ssize_t on WIN64 with its proper size. Patch thanks to David Cournapeau!
llvm-svn: 185627
| -rw-r--r-- | llvm/include/llvm/Support/DataTypes.h.cmake | 6 | ||||
| -rw-r--r-- | llvm/include/llvm/Support/DataTypes.h.in | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/DataTypes.h.cmake b/llvm/include/llvm/Support/DataTypes.h.cmake index 7484abd3686..1dcec0588fa 100644 --- a/llvm/include/llvm/Support/DataTypes.h.cmake +++ b/llvm/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 diff --git a/llvm/include/llvm/Support/DataTypes.h.in b/llvm/include/llvm/Support/DataTypes.h.in index b9fb48a1d49..d6c38169504 100644 --- a/llvm/include/llvm/Support/DataTypes.h.in +++ b/llvm/include/llvm/Support/DataTypes.h.in @@ -98,7 +98,12 @@ 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 long ssize_t; +#endif + #ifndef INT8_MAX # define INT8_MAX 127 #endif |

