[PATCH 6/6] cdefs.h: Remove redundant #ifdefs
Sebastian Huber
sebastian.huber@embedded-brains.de
Mon Jul 11 07:15:47 GMT 2022
From: Warner Losh <imp@FreeBSD.org>
Remove redunant #ifdef __GNUC__ inside an #if defined(__GNUC__)
block. They are nops.
Sponsored by: Netflix
---
newlib/libc/include/sys/cdefs.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index b3508f3a9..720e70092 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -122,16 +122,12 @@
#define __GNUCLIKE_BUILTIN_VAALIST 1
#endif
-#if defined(__GNUC__)
#define __GNUC_VA_LIST_COMPATIBILITY 1
-#endif
/*
* Compiler memory barriers, specific to gcc and clang.
*/
-#if defined(__GNUC__)
#define __compiler_membar() __asm __volatile(" " : : : "memory")
-#endif
#define __GNUCLIKE_BUILTIN_NEXT_ARG 1
#define __GNUCLIKE_MATH_BUILTIN_RELOPS
--
2.35.3
More information about the Newlib
mailing list