Blob Blame History Raw
commit b051aa35005b1089ab0ceba93568f388b9132b92
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Sun Jan 31 23:23:31 2021 +0100

    Add missing definition of SIZE_MAX
    
    If the stdint.h system file follows the ISO C99 specification, it might
    not define SIZE_MAX in C++ by default, so provide a local fallback.
    
    gcc/
            * system.h (SIZE_MAX): Define if not already defined.

--- gcc/system.h
+++ gcc/system.h
@@ -528,6 +528,10 @@ extern void *realloc (void *, size_t);
 #include <inttypes.h>
 #endif
 
+#ifndef SIZE_MAX
+# define SIZE_MAX INTTYPE_MAXIMUM (size_t)
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif