mescc: Non-Guix support. Thanks rain1!
* mlibc/include: Neutralize include guards before #include_next. Fixes compiling tinycc on Debian GNU/Linux.
This commit is contained in:
parent
2756dd9071
commit
eee7f8cb3c
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_ALLOCA_H 1
|
||||
#include_next <alloca.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_ASSERT_H
|
||||
#include_next <assert.h>
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
#define assert(x) ((x) ? (void)0 : assert_fail (#x))
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_CTYPE_H
|
||||
#include_next <ctype.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_DLFCN_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_DLFCN_H
|
||||
#include_next <dlfcn.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_ERRNO_H
|
||||
#include_next <errno.h>
|
||||
#endif // ! (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_FCNTL_H
|
||||
#include_next <fcntl.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_FEATURES_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_FEATURES_H
|
||||
#include_next <features.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_INTTYPES_H
|
||||
#include_next <inttypes.h>
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_LIBGEN_H
|
||||
#include_next <libgen.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_LIMITS_H
|
||||
#include_next <limits.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_LOCALE_H
|
||||
#include_next <locale.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_MATH_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_MATH_H
|
||||
#include_next <math.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SETJMP_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SETJMP_H
|
||||
#include_next <setjmp.h>
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SIGNAL_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SIGNAL_H
|
||||
#include_next <signal.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_STDARG_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_STDARG_H
|
||||
#include_next <stdarg.h>
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_STDBOOL_H
|
||||
#include_next <stdbool.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_STDINT_H
|
||||
#include_next <stdint.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -37,6 +37,7 @@ int sprintf (char *str, char const* format, ...);
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_STDIO_H
|
||||
#include_next <stdio.h>
|
||||
|
||||
int fdputs (char const* s, int fd);
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_STDLIB_H
|
||||
#include_next <stdlib.h>
|
||||
#else // !(__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_STDNORETURN_H
|
||||
#include_next <stdnoreturn.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_STRING_H
|
||||
#include_next <string.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_STRINGS_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_STRINGS_H
|
||||
#include_next <strings.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SYS_CDEFS_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SYS_CDEFS_H
|
||||
#include_next <sys/cdefs.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SYS_MMAN_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SYS_MMAN_H
|
||||
#include_next <sys/mman.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SYS_STAT_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SYS_STAT_H
|
||||
#include_next <sys/stat.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SYS_TIME_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SYS_TIME_H
|
||||
#include_next <sys/time.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SYS_TIMEB_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SYS_TIMEB_H
|
||||
#include_next <sys/timeb.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SYS_TYPES_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SYS_TYPES_H
|
||||
#include_next <sys/types.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SYS_UCONTEXT_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SYS_UCONTEXT_H
|
||||
#include_next <sys/ucontext.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_SYS_WAIT_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_SYS_WAIT_H
|
||||
#include_next <sys/wait.h>
|
||||
#endif // (__GNUC__ && POSIX)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define __MES_TIME_H 1
|
||||
|
||||
#if __GNUC__ && POSIX
|
||||
#undef __MES_TIME_H
|
||||
#include_next <time.h>
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
typedef int time_t;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#undef __MES_UNISTD_H
|
||||
#include_next <unistd.h>
|
||||
|
||||
#else // ! (__GNUC__ && POSIX)
|
||||
|
|
Loading…
Reference in a new issue