This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove _G_HAVE_SYS_CDEFS


This patch removes _G_HAVE_SYS_CDEFS macro, which is always defined to 1.
Compiles on x86_64-unknown-linux-gnu and x86_64-redhat-linux.

Ok for trunk?

2012-02-08  Marek Polacek  <polacek@redhat.com>

	* libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
	* sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
	* sysdeps/gnu/_G_config.h: Likewise.
	* sysdeps/generic/_G_config.h: Likewise.

--- libc/libio/libio.h.mp	2012-02-08 10:20:08.813327814 +0100
+++ libc/libio/libio.h	2012-02-08 10:20:33.015367270 +0100
@@ -59,12 +59,7 @@
 #endif
 
 #ifndef __P
-# if _G_HAVE_SYS_CDEFS
-#  include <sys/cdefs.h>
-# else
-#  define __P(p) p
-#  define __PMT(p) p
-# endif
+# include <sys/cdefs.h>
 #endif /*!__P*/
 
 #define _IO_UNIFIED_JUMPTABLES 1
--- libc/sysdeps/mach/hurd/_G_config.h.mp	2012-02-08 10:20:08.815327817 +0100
+++ libc/sysdeps/mach/hurd/_G_config.h	2012-02-08 10:23:57.585700780 +0100
@@ -60,7 +60,6 @@ typedef unsigned int _G_uint32_t __attri
 
 /* These library features are always available in the GNU C library.  */
 #define _G_HAVE_ATEXIT 1
-#define _G_HAVE_SYS_CDEFS 1
 #define _G_HAVE_SYS_WAIT 1
 #define _G_NEED_STDARG_H 1
 #define _G_va_list __gnuc_va_list
--- libc/sysdeps/gnu/_G_config.h.mp	2012-02-08 10:20:08.817327821 +0100
+++ libc/sysdeps/gnu/_G_config.h	2012-02-08 10:24:08.586718714 +0100
@@ -60,7 +60,6 @@ typedef unsigned int _G_uint32_t __attri
 
 /* These library features are always available in the GNU C library.  */
 #define _G_HAVE_ATEXIT 1
-#define _G_HAVE_SYS_CDEFS 1
 #define _G_HAVE_SYS_WAIT 1
 #define _G_NEED_STDARG_H 1
 #define _G_va_list __gnuc_va_list
--- libc/sysdeps/generic/_G_config.h.mp	2012-02-08 10:20:08.818327823 +0100
+++ libc/sysdeps/generic/_G_config.h	2012-02-08 10:24:17.727733617 +0100
@@ -60,7 +60,6 @@ typedef unsigned int _G_uint32_t __attri
 
 /* These library features are always available in the GNU C library.  */
 #define _G_HAVE_ATEXIT 1
-#define _G_HAVE_SYS_CDEFS 1
 #define _G_HAVE_SYS_WAIT 1
 #define _G_NEED_STDARG_H 1
 #define _G_va_list __gnuc_va_list

	Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]