Attempt to fix compilation error with MSVC-2008

This commit is contained in:
Sergey Sharybin 2014-01-28 01:36:49 +06:00
parent e983ed6aaa
commit efaadc3104
2 changed files with 10 additions and 4 deletions

@ -46,6 +46,9 @@ typedef signed __int32 int32_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;

@ -1,7 +1,7 @@
diff -r 47dfdaff1dd5 include/carve/win32.h
--- a/include/carve/win32.h Thu Jan 12 15:49:04 2012 -0500
+++ b/include/carve/win32.h Fri Jan 13 03:15:51 2012 +0600
@@ -32,14 +32,19 @@
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 @@
# if _MSC_VER < 1600
// stdint.h is not available before VS2010
@ -23,6 +23,9 @@ diff -r 47dfdaff1dd5 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;