Blame SOURCES/gcc10-SIZE_MAX.patch

e9307e
commit b051aa35005b1089ab0ceba93568f388b9132b92
e9307e
Author: Eric Botcazou <ebotcazou@adacore.com>
e9307e
Date:   Sun Jan 31 23:23:31 2021 +0100
e9307e
e9307e
    Add missing definition of SIZE_MAX
e9307e
    
e9307e
    If the stdint.h system file follows the ISO C99 specification, it might
e9307e
    not define SIZE_MAX in C++ by default, so provide a local fallback.
e9307e
    
e9307e
    gcc/
e9307e
            * system.h (SIZE_MAX): Define if not already defined.
e9307e
e9307e
--- gcc/system.h
e9307e
+++ gcc/system.h
e9307e
@@ -528,6 +528,10 @@ extern void *realloc (void *, size_t);
e9307e
 #include <inttypes.h>
e9307e
 #endif
e9307e
 
e9307e
+#ifndef SIZE_MAX
e9307e
+# define SIZE_MAX INTTYPE_MAXIMUM (size_t)
e9307e
+#endif
e9307e
+
e9307e
 #ifdef __cplusplus
e9307e
 extern "C" {
e9307e
 #endif