mescc: Non-Guix support. Thanks rain1!
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 23 Jul 2017 13:49:03 +0000 (15:49 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 26 Jul 2017 09:36:08 +0000 (11:36 +0200)
* mlibc/include: Neutralize include guards before #include_next.
  Fixes compiling tinycc on Debian GNU/Linux.

32 files changed:
mlibc/include/alloca.h
mlibc/include/assert.h
mlibc/include/ctype.h
mlibc/include/dlfcn.h
mlibc/include/errno.h
mlibc/include/fcntl.h
mlibc/include/features.h
mlibc/include/inttypes.h
mlibc/include/libgen.h
mlibc/include/limits.h
mlibc/include/locale.h
mlibc/include/math.h
mlibc/include/setjmp.h
mlibc/include/signal.h
mlibc/include/stdarg.h
mlibc/include/stdbool.h
mlibc/include/stdint.h
mlibc/include/stdio.h
mlibc/include/stdlib.h
mlibc/include/stdnoreturn.h
mlibc/include/string.h
mlibc/include/strings.h
mlibc/include/sys/cdefs.h
mlibc/include/sys/mman.h
mlibc/include/sys/stat.h
mlibc/include/sys/time.h
mlibc/include/sys/timeb.h
mlibc/include/sys/types.h
mlibc/include/sys/ucontext.h
mlibc/include/sys/wait.h
mlibc/include/time.h
mlibc/include/unistd.h

index a3883b8cd6bee9c2bdbcb7ee190c5c1c4fc33733..61df8930a3d0e68258b26000ee085a0ed1c61abf 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_ALLOCA_H 1
 #include_next <alloca.h>
 
 #else // ! (__GNUC__ && POSIX)
index d301c1961d05f3f63d27b9aa77d88f3994f1fe8d..18ce042c7f85f71a8a0405a207680b3cc2af368c 100644 (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))
index 722814c9cf6d01acd4e5789660a5ba5e7f903601..32be3c50f9a672c83a218b169b71713b2969f5cc 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_CTYPE_H
 #include_next <ctype.h>
 
 #else // ! (__GNUC__ && POSIX)
index 254a23773e7359f899023ddce08366baca95c928..01c50fa1430705846513d1a4c04901982104be76 100644 (file)
@@ -21,6 +21,7 @@
 #define __MES_DLFCN_H 1
 
 #if __GNUC__ && POSIX
+#undef __MES_DLFCN_H
 #include_next <dlfcn.h>
 #endif // (__GNUC__ && POSIX)
 
index 3ffd1a08bfdffcb488499b7d3deb6e96e228ed4c..ca27926149b962709ead0ea38b7a663842b54b61 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_ERRNO_H
 #include_next <errno.h>
 #endif // ! (__GNUC__ && POSIX)
 
index c728f8a6617281d7f390edee5e1c5c322b622cef..7d30a7bb74df1a23b5580a8d25573725e7e012eb 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_FCNTL_H
 #include_next <fcntl.h>
 
 #else // ! (__GNUC__ && POSIX)
index d4cbf27af251a6f94987c52a77cbd6d4344f1a63..a75a698fd82b801985b8855e08bb944f545d739a 100644 (file)
@@ -21,6 +21,7 @@
 #define __MES_FEATURES_H 1
 
 #if __GNUC__ && POSIX
+#undef __MES_FEATURES_H
 #include_next <features.h>
 #endif // (__GNUC__ && POSIX)
 
index b3aa6107d8624dbe744bf8f68eedf96bfd0d4509..b3f4f7e0f29bc2f313e1e41242630829bfe7c685 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_INTTYPES_H
 #include_next <inttypes.h>
 #else // ! (__GNUC__ && POSIX)
 
index e5199cc0c39a0f6a410393495db59077f84f5f49..2bad446b4c52af3712b7e0d54464475d4afd3d1b 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_LIBGEN_H
 #include_next <libgen.h>
 
 #else // ! (__GNUC__ && POSIX)
index e4ec62cc3cecd16ee9e1066b6a900be6cd3e4b39..765dd4a8d722bb2f814d06f35e3fe4dc11bb802e 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_LIMITS_H
 #include_next <limits.h>
 
 #else // ! (__GNUC__ && POSIX)
index 6cfc027c0651d5d8a4ae243286d3217dd91ac758..bbd079736be13488f92b09a99eee32939cc3a21c 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_LOCALE_H
 #include_next <locale.h>
 
 #else // ! (__GNUC__ && POSIX)
index 15dec7ca673931db223f8c29caa334d7297af3e1..c74b8864c837d01b5d2628b4e3f3301c3d353dbf 100644 (file)
@@ -21,6 +21,7 @@
 #define __MES_MATH_H 1
 
 #if __GNUC__ && POSIX
+#undef __MES_MATH_H
 #include_next <math.h>
 #endif // (__GNUC__ && POSIX)
 
index e28153f8050774aec030f12b9a5f6c9c8255446c..2792ed0cecaad278f667c5d29342789aaba410b5 100644 (file)
@@ -21,6 +21,7 @@
 #define __MES_SETJMP_H 1
 
 #if __GNUC__ && POSIX
+#undef __MES_SETJMP_H
 #include_next <setjmp.h>
 #else // ! (__GNUC__ && POSIX)
 
index 50837dcdda93a5395eb57527e55596a146f04bc6..d073a6b902de7dcea78b79f6c3a3d9bc3d70c173 100644 (file)
@@ -21,6 +21,7 @@
 #define __MES_SIGNAL_H 1
 
 #if __GNUC__ && POSIX
+#undef __MES_SIGNAL_H
 #include_next <signal.h>
 #endif // (__GNUC__ && POSIX)
 
index 24df07fcd05898ef495f894f24ea9fa549cfffbb..d2b16dfbda7fb80c399cbcfcfa832a22f7380c16 100644 (file)
@@ -21,6 +21,7 @@
 #define __MES_STDARG_H 1
 
 #if __GNUC__ && POSIX
+#undef __MES_STDARG_H
 #include_next <stdarg.h>
 #else // ! (__GNUC__ && POSIX)
 
index e2e1ee57df6601d0b2921badaa977bcabb98af9d..c900fc5bb98dd0e0cca59583712a86114301f1b4 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_STDBOOL_H
 #include_next <stdbool.h>
 
 #else // ! (__GNUC__ && POSIX)
index e7f13fd024f32efb56117b7d39bc62a14201f2bc..a182bf6536f93fc1adc471199bf7caf7c7d5c7d8 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_STDINT_H
 #include_next <stdint.h>
 
 #else // ! (__GNUC__ && POSIX)
index b9453a2133ee07c318d94868a99243e2e8b40416..ada3909d09700d9eb1591ce33af7e1d825309036 100644 (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);
index ebaba062883d154bd62248e3b3489d883ce1b455..b2d181bb7ae66305f9e1be240652fa571e0e8eb5 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_STDLIB_H
 #include_next <stdlib.h>
 #else  // !(__GNUC__ && POSIX)
 
index 84a1e94b5a830dab13547309934c1ef8cfa8c335..e1e94fdb6057a7e51178f8df8de5133eb2d4c76d 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_STDNORETURN_H
 #include_next <stdnoreturn.h>
 
 #else // ! (__GNUC__ && POSIX)
index 104a359d65847b0850b0e614ddc63e8d2cf3b194..c9c9f4357ca6888462ee3251e8e1c230d61ad5ec 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_STRING_H
 #include_next <string.h>
 
 #else // ! (__GNUC__ && POSIX)
index 0878530e19a846843c9ec70febd60a7fb3290ced..49b8f7448ae9820c63abb57ff35079b7dc071c60 100644 (file)
@@ -21,6 +21,7 @@
 #define __MES_STRINGS_H 1
 
 #if __GNUC__ && POSIX
+#undef __MES_STRINGS_H
 #include_next <strings.h>
 #endif // (__GNUC__ && POSIX)
 
index 63c7dfa7ee8fbb87d37c5fa9d9155d6c93c15b12..b156e084d998aecbedd0167b6831c62d69e4a6e2 100644 (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)
 
index 522a710a2d5caaa79b988f7cd155bb35b048c0c4..93dff0ab99251eb8978378c9ac7b3e427c9771a7 100644 (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)
 
index 6adae743244a5ed1ec5bde9d6857d169888bf4d6..22ae82625c9df8d12b5f451b7fcf2c035d8492a7 100644 (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)
 
index de788912dbe2fe007218a22738c6419b3819a14b..673cf56cffe89c12071aaee530be187f5268879e 100644 (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)
 
index 2cd990876875be3914d08b4d69306459d6fe553b..a2bacd3c30a0c0804dc7b48db664309a39c7a291 100644 (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)
 
index b7b05c67e939de7789c7f3132d693a7f565c8703..d2f1620ca7a7ffeba1dacaeb8467acd61fe264a8 100644 (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)
 
index bdf9274f10258ef0edd31a89b0068a41a5d12c4c..4f68f36ef259f357708ee851a3dfb92fa686365e 100644 (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)
 
index 7e28e89f86c8e7261d64451d391012e300b83eb7..6d5eb5246ed1d896f0aaadbc76dd366295d4a304 100644 (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)
 
index 1406d5b557a129ae45f14a9d83d3b5b3c378291d..0b80ee97d0c45d4adad296770d674c36812ceb6f 100644 (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;
index fdb6808caa7f951c352812c8cc253e26a0fcce52..332d93638fe69523b05281a8ec2fea89e5547003 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#undef __MES_UNISTD_H
 #include_next <unistd.h>
 
 #else // ! (__GNUC__ && POSIX)