public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] cdefs.h: Remove redundant #ifdefs
@ 2022-07-11  9:53 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-07-11  9:53 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9331071f0262e8cb518d02cfb13e646db9bc3ed9

commit 9331071f0262e8cb518d02cfb13e646db9bc3ed9
Author: Warner Losh <imp@FreeBSD.org>
Date:   Tue Sep 7 09:34:02 2021 -0600

    cdefs.h: Remove redundant #ifdefs
    
    Remove redunant #ifdef __GNUC__ inside an #if defined(__GNUC__)
    block. They are nops.
    
    Sponsored by:           Netflix

Diff:
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-11  9:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11  9:53 [newlib-cygwin] cdefs.h: Remove redundant #ifdefs Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).