Fix MingW build
[alexxy/gromacs.git] / src / external / tng_io / include / tng / tng_io.h
index 42119a5328863cd1dbfb538ef71da68fc2b49237..51c1d9b5935f89fa64dc6c2f78c020b21b2157cd 100644 (file)
@@ -336,13 +336,18 @@ typedef unsigned __int64 uint64_t;
 
 #endif /* USE_STD_INTTYPES_H */
 
-
 #ifndef USE_WINDOWS
 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
 #define USE_WINDOWS
 #endif /* win32... */
 #endif /* not defined USE_WINDOWS */
 
+#ifdef USE_WINDOWS
+#define TNG_PRIsize "Iu"
+#else
+#define TNG_PRIsize "zu"
+#endif
+
 #ifndef DECLSPECDLLEXPORT
 #ifdef USE_WINDOWS
 #define DECLSPECDLLEXPORT __declspec(dllexport)