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:
Jan Nieuwenhuizen 2017-07-23 15:49:03 +02:00
parent 2756dd9071
commit eee7f8cb3c
32 changed files with 32 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_ALLOCA_H 1
#include_next <alloca.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -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))

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_CTYPE_H
#include_next <ctype.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -21,6 +21,7 @@
#define __MES_DLFCN_H 1
#if __GNUC__ && POSIX
#undef __MES_DLFCN_H
#include_next <dlfcn.h>
#endif // (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_ERRNO_H
#include_next <errno.h>
#endif // ! (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_FCNTL_H
#include_next <fcntl.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -21,6 +21,7 @@
#define __MES_FEATURES_H 1
#if __GNUC__ && POSIX
#undef __MES_FEATURES_H
#include_next <features.h>
#endif // (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_INTTYPES_H
#include_next <inttypes.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_LIBGEN_H
#include_next <libgen.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_LIMITS_H
#include_next <limits.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_LOCALE_H
#include_next <locale.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -21,6 +21,7 @@
#define __MES_MATH_H 1
#if __GNUC__ && POSIX
#undef __MES_MATH_H
#include_next <math.h>
#endif // (__GNUC__ && POSIX)

View File

@ -21,6 +21,7 @@
#define __MES_SETJMP_H 1
#if __GNUC__ && POSIX
#undef __MES_SETJMP_H
#include_next <setjmp.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -21,6 +21,7 @@
#define __MES_SIGNAL_H 1
#if __GNUC__ && POSIX
#undef __MES_SIGNAL_H
#include_next <signal.h>
#endif // (__GNUC__ && POSIX)

View File

@ -21,6 +21,7 @@
#define __MES_STDARG_H 1
#if __GNUC__ && POSIX
#undef __MES_STDARG_H
#include_next <stdarg.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_STDBOOL_H
#include_next <stdbool.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_STDINT_H
#include_next <stdint.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -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);

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_STDLIB_H
#include_next <stdlib.h>
#else // !(__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_STDNORETURN_H
#include_next <stdnoreturn.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_STRING_H
#include_next <string.h>
#else // ! (__GNUC__ && POSIX)

View File

@ -21,6 +21,7 @@
#define __MES_STRINGS_H 1
#if __GNUC__ && POSIX
#undef __MES_STRINGS_H
#include_next <strings.h>
#endif // (__GNUC__ && POSIX)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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;

View File

@ -24,6 +24,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#undef __MES_UNISTD_H
#include_next <unistd.h>
#else // ! (__GNUC__ && POSIX)