Removed C90 limitations and NO_LONG_LONG related stuff as even MinGW on Windows 2000... master
authorRobert Pengelly <robertapengelly@hotmail.com>
Wed, 19 Aug 2026 11:38:08 +0000 (12:38 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Wed, 19 Aug 2026 11:38:08 +0000 (12:38 +0100)
cc.h
eval.c
stdint.h [deleted file]
token.c

diff --git a/cc.h b/cc.h
index a014e70a9a53f5c0fe8bc7cec8a0ab2c8268de4a..6aaf2091b9f9687c803a076c3f520bfcfd5a6fa3 100755 (executable)
--- a/cc.h
+++ b/cc.h
@@ -4,10 +4,10 @@
 #ifndef     _CC_H
 #define     _CC_H
 
+#include    <stdint.h>
 #include    <stdio.h>
 
 #include    "list.h"
-#include    "stdint.h"
 #include    "vector.h"
 
 struct cc_state {
diff --git a/eval.c b/eval.c
index ece45d46095445b01aa005f0599c81f6fc8c7c06..edceb08a77ba2d8c558726e4f3eabc32277e0872 100755 (executable)
--- a/eval.c
+++ b/eval.c
@@ -3,6 +3,7 @@
  *****************************************************************************/
 #include    <assert.h>
 #include    <ctype.h>
+#include    <stdint.h>
 #include    <stdio.h>
 #include    <stdlib.h>
 #include    <string.h>
@@ -13,7 +14,6 @@
 #include    "lib.h"
 #include    "macro.h"
 #include    "report.h"
-#include    "stdint.h"
 
 static uint64_t eval_expr (uint64_t lhs, char *start, char **pp, int outer_prec, int brackets);
 
diff --git a/stdint.h b/stdint.h
deleted file mode 100755 (executable)
index 1b97ab8..0000000
--- a/stdint.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/******************************************************************************
- * @file            stdint.h
- *****************************************************************************/
-#ifndef     _STDINT_H_INCLUDED
-#ifndef     _STDINT_H
-#ifndef     _STDINT_H_
-
-#define     _STDINT_H_INCLUDED
-#define     _STDINT_H
-#define     _STDINT_H_
-
-#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;
-
-typedef     signed short                int16_t;
-typedef     unsigned short              uint16_t;
-
-#if     INT_MAX > 32767
-typedef     signed int                  int32_t;
-typedef     unsigned int                uint32_t;
-#else
-typedef     signed long                 int32_t;
-typedef     unsigned long               uint32_t;
-#endif
-
-#ifndef     _INT64_T
-#define     _INT64_T
-#if     defined (NO_LONG_LONG) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff
-typedef     signed long                 int64_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 >> 16) >> 16) == 0xffffffff
-typedef     unsigned long               uint64_t;
-#else
-typedef     unsigned long long          uint64_t;
-#endif
-#endif      /* _UINT64_T */
-
-#endif      /* _STDINT_H_ */
-#endif      /* _STDINT_H */
-#endif      /* _STDINT_H_INCLUDED */
diff --git a/token.c b/token.c
index 605ff8b64ad5faf91390ca70ddec61a00ea0c0b1..dc242981fecfc81ac39e44f5a51369c9ec3178a8 100755 (executable)
--- a/token.c
+++ b/token.c
@@ -765,7 +765,7 @@ static int chrpos (char *s, int ch) {
 
 }
 
-#include    "stdint.h"
+#include    <stdint.h>
 
 static int hex_char (uint64_t *out, struct token *tok, int idx) {