summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r--xdelta3/xdelta3.h5
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
138typedef signed int ssize_t; 138typedef signed int ssize_t;
139typedef int pid_t;
139#if _MSC_VER < 1600 140#if _MSC_VER < 1600
140typedef unsigned char uint8_t; 141typedef unsigned char uint8_t;
141typedef unsigned short uint16_t; 142typedef 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
170static_assert(SIZEOF_SIZE_T == sizeof(size_t), "SIZEOF_SIZE_T not correctly set");
171static_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)
170typedef uint64_t xoff_t; 175typedef uint64_t xoff_t;