ref: f480a2c5373abf4290643600dd9376afd95a1cfb
parent: b455d411d48d803903d2c1bca8c6af4bd264f300
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jan 24 04:27:20 EST 2020
libc: Fix preprocessor guard for size_t _SIZE_T is used to detect if size_t must be defined, but in some architectures the macro SIZET_ was used, and it was using the user namespace instead of using one of the namespaces reserved for the implementation.
--- a/include/bits/arm32/arch/stddef.h
+++ b/include/bits/arm32/arch/stddef.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned int size_t;
-#define SIZET_
+#define _SIZET
#endif
#ifndef _PTRDIFF_T
--- a/include/bits/arm32/arch/stdlib.h
+++ b/include/bits/arm32/arch/stdlib.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned int size_t;
-#define SIZET_
+#define _SIZET
#endif
#define EXIT_FAILURE 1
--- a/include/bits/arm32/arch/string.h
+++ b/include/bits/arm32/arch/string.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned int size_t;
-#define SIZET_
+#define _SIZET
#endif
#define __NUMCHARS 128
--- a/include/bits/arm64/arch/stddef.h
+++ b/include/bits/arm64/arch/stddef.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned long size_t;
-#define SIZET_
+#define _SIZET
#endif
#ifndef _PTRDIFF_T
--- a/include/bits/arm64/arch/stdlib.h
+++ b/include/bits/arm64/arch/stdlib.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned long size_t;
-#define SIZET_
+#define _SIZET
#endif
#define EXIT_FAILURE 1
--- a/include/bits/arm64/arch/string.h
+++ b/include/bits/arm64/arch/string.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned long size_t;
-#define SIZET_
+#define _SIZET
#endif
#define __NUMCHARS 128
--- a/include/bits/ppc32/arch/stddef.h
+++ b/include/bits/ppc32/arch/stddef.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned int size_t;
-#define SIZET_
+#define _SIZET
#endif
#ifndef _PTRDIFF_T
--- a/include/bits/ppc32/arch/stdlib.h
+++ b/include/bits/ppc32/arch/stdlib.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned int size_t;
-#define SIZET_
+#define _SIZET
#endif
#define EXIT_FAILURE 1
--- a/include/bits/ppc32/arch/string.h
+++ b/include/bits/ppc32/arch/string.h
@@ -1,6 +1,6 @@
-#ifndef SIZET_
+#ifndef _SIZET
typedef unsigned int size_t;
-#define SIZET_
+#define _SIZET
#endif
#define __NUMCHARS 128