scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 7a60209bb018563900d30803abd7b66d339489ca
parent e71e1e190e6ee67707da53600ccca0a5190b6533
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 24 Jan 2020 09:27:20 +0100

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.

Diffstat:
Minclude/bits/arm32/arch/stddef.h | 4++--
Minclude/bits/arm32/arch/stdlib.h | 4++--
Minclude/bits/arm32/arch/string.h | 4++--
Minclude/bits/arm64/arch/stddef.h | 4++--
Minclude/bits/arm64/arch/stdlib.h | 4++--
Minclude/bits/arm64/arch/string.h | 4++--
Minclude/bits/ppc32/arch/stddef.h | 4++--
Minclude/bits/ppc32/arch/stdlib.h | 4++--
Minclude/bits/ppc32/arch/string.h | 4++--
9 files changed, 18 insertions(+), 18 deletions(-)

diff --git 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 diff --git 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 diff --git 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 diff --git 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 diff --git 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 diff --git 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 diff --git 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 diff --git 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 diff --git 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