diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-31 13:30:36 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-31 13:33:48 +0400 |
commit | 9896508e14d220fd86567a4dd4e596af66eace24 (patch) | |
tree | ff0aa04916884d9329eaae33da75bcbc481ff5d0 /extern/carve/patches/win32.patch | |
parent | d291d15c193e98ad9fbc05832587bc17a191aa9e (diff) |
Fix compilation error with msvc2012 and 2013 as well
Diffstat (limited to 'extern/carve/patches/win32.patch')
-rw-r--r-- | extern/carve/patches/win32.patch | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/extern/carve/patches/win32.patch b/extern/carve/patches/win32.patch index 5d3a3a081c5..680bceb2421 100644 --- a/extern/carve/patches/win32.patch +++ b/extern/carve/patches/win32.patch @@ -1,7 +1,7 @@ diff -r e82d852e4fb0 include/carve/win32.h --- a/include/carve/win32.h Wed Jan 15 13:16:14 2014 +1100 -+++ b/include/carve/win32.h Tue Jan 28 01:35:54 2014 +0600 -@@ -32,14 +32,22 @@ ++++ b/include/carve/win32.h Fri Jan 31 15:32:01 2014 +0600 +@@ -32,17 +32,27 @@ # if _MSC_VER < 1600 // stdint.h is not available before VS2010 @@ -23,10 +23,15 @@ diff -r e82d852e4fb0 include/carve/win32.h +typedef unsigned __int8 uint8_t; +typedef unsigned __int16 uint16_t; +typedef unsigned __int32 uint32_t; -+ -+# include <BaseTsd.h> -+typedef SSIZE_T ssize_t; +#endif typedef __int64 int64_t; typedef unsigned __int64 uint64_t; # else + # include <stdint.h> + # endif + #endif ++ ++#if defined(_MSC_VER) ++# include <BaseTsd.h> ++typedef SSIZE_T ssize_t; ++#endif |