Fixed stdint.h master
authorRobert Pengelly <robertapengelly@hotmail.com>
Mon, 13 Oct 2025 03:03:01 +0000 (04:03 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Mon, 13 Oct 2025 03:03:01 +0000 (04:03 +0100)
stdint.h
unzip.c

index ae821b920d5ecb4e4f6e140ef6134e4717a99fbc..4a5e83958746b430a07e0a8a25eb290e951dc8b7 100644 (file)
--- a/stdint.h
+++ b/stdint.h
@@ -11,6 +11,7 @@
 
 #include    <limits.h>
 
+/* Add all data types (even though we don't use them) as the project seems to fail to build on some systems. */
 typedef     signed char                 int8_t;
 typedef     unsigned char               uint8_t;
 
@@ -25,13 +26,23 @@ typedef     signed long                 int32_t;
 typedef     unsigned long               uint32_t;
 #endif
 
+#ifndef     _INT64_T
+#define     _INT64_T
 #if     defined (NO_LONG_LONG) || ULONG_MAX > 4294967295UL
 typedef     signed long                 int64_t;
-typedef     unsigned long               uint64_t;
 #else
 typedef     signed long long            int64_t;
+#endif
+#endif      /* _INT64_T */
+
+#ifndef     _UINT64_T
+#define     _UINT64_T
+#if     defined (NO_LONG_LONG) || ULONG_MAX > 4294967295UL
+typedef     unsigned long               uint64_t;
+#else
 typedef     unsigned long long          uint64_t;
 #endif
+#endif      /* _UINT64_T */
 
 #define     UINT8_MAX                   0xff
 
diff --git a/unzip.c b/unzip.c
index 33d957bc429ccf2bbd7c59a46145639d075f4d8f..40bb6c272c65cc179f56b8fcb25a0e3ba236d7a7 100755 (executable)
--- a/unzip.c
+++ b/unzip.c
@@ -2,6 +2,7 @@
  * @file            unzip.c
  *****************************************************************************/
 #include    <assert.h>
+#include    <limits.h>
 #include    <stdio.h>
 #include    <stdlib.h>
 #include    <string.h>