diff options
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r-- | xdelta3/xdelta3.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h index f98eb2a..b9b6fe0 100644 --- a/xdelta3/xdelta3.h +++ b/xdelta3/xdelta3.h | |||
@@ -136,6 +136,7 @@ | |||
136 | /* _MSV_VER is defined by Microsoft tools, not by Mingw32 */ | 136 | /* _MSV_VER is defined by Microsoft tools, not by Mingw32 */ |
137 | #ifdef _MSC_VER | 137 | #ifdef _MSC_VER |
138 | typedef signed int ssize_t; | 138 | typedef signed int ssize_t; |
139 | typedef int pid_t; | ||
139 | #if _MSC_VER < 1600 | 140 | #if _MSC_VER < 1600 |
140 | typedef unsigned char uint8_t; | 141 | typedef unsigned char uint8_t; |
141 | typedef unsigned short uint16_t; | 142 | typedef unsigned short uint16_t; |
@@ -144,6 +145,7 @@ typedef ULONGLONG uint64_t; | |||
144 | #else /* _MSC_VER >= 1600 */ | 145 | #else /* _MSC_VER >= 1600 */ |
145 | /* For MSVC10 and above */ | 146 | /* For MSVC10 and above */ |
146 | #include <stdint.h> | 147 | #include <stdint.h> |
148 | #define inline __inline | ||
147 | #endif /* _MSC_VER < 1600 */ | 149 | #endif /* _MSC_VER < 1600 */ |
148 | #else /* _MSC_VER not defined */ | 150 | #else /* _MSC_VER not defined */ |
149 | /* Mingw32 */ | 151 | /* Mingw32 */ |
@@ -165,6 +167,9 @@ typedef ULONGLONG uint64_t; | |||
165 | #define _FILE_OFFSET_BITS 64 | 167 | #define _FILE_OFFSET_BITS 64 |
166 | #endif | 168 | #endif |
167 | 169 | ||
170 | static_assert(SIZEOF_SIZE_T == sizeof(size_t), "SIZEOF_SIZE_T not correctly set"); | ||
171 | static_assert(SIZEOF_UNSIGNED_LONG_LONG == sizeof(unsigned long long), "SIZEOF_UNSIGNED_LONG_LONG not correctly set"); | ||
172 | |||
168 | /* Set a xoff_t typedef and the "Q" printf insert. */ | 173 | /* Set a xoff_t typedef and the "Q" printf insert. */ |
169 | #if defined(_WIN32) | 174 | #if defined(_WIN32) |
170 | typedef uint64_t xoff_t; | 175 | typedef uint64_t xoff_t; |