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

index b0540a12f010010783ec6738c4a8020d4ad82515..00b889bedb8bd7b0b5a1866c60f049d9300ec1c4 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 */
 
 #endif      /* _STDINT_H_ */
 #endif      /* _STDINT_H */