Fix compilation error with msvc2012 and 2013 as well
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 31 Jan 2014 09:30:36 +0000 (15:30 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 31 Jan 2014 09:33:48 +0000 (15:33 +0600)
extern/carve/include/carve/win32.h [changed mode: 0755->0644]
extern/carve/patches/win32.patch

old mode 100755 (executable)
new mode 100644 (file)
index 4a135b9..81b2ea4
@@ -46,9 +46,6 @@ typedef signed __int32 int32_t;
 typedef unsigned __int8  uint8_t;
 typedef unsigned __int16 uint16_t;
 typedef unsigned __int32 uint32_t;
 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;
 #endif
 typedef __int64 int64_t;
 typedef unsigned __int64 uint64_t;
@@ -56,3 +53,8 @@ typedef unsigned __int64 uint64_t;
 #    include <stdint.h>
 #  endif
 #endif
 #    include <stdint.h>
 #  endif
 #endif
+
+#if defined(_MSC_VER)
+#  include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
index 5d3a3a081c50144c3541048896e4060e6ce2f54e..680bceb2421e9e290b6f0687f5fd8203d9e102bf 100644 (file)
@@ -1,7 +1,7 @@
 diff -r e82d852e4fb0 include/carve/win32.h
 --- a/include/carve/win32.h    Wed Jan 15 13:16:14 2014 +1100
 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
  
  #  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;
 +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
 +#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