Use system_header pragma in libstdc++-v3 headers only where required

Loren James Rittle rittle@latour.rsch.comm.mot.com
Tue May 16 15:29:00 GMT 2000


This patch should only be applied once Zack installs support for the
system_header pragma.  This is a another step towards being able to
'make check-g++' against libstdc++-v3 headers before 'make install'.

2000-05-16  Loren J. Rittle  <ljrittle@acm.org>

	* bits/std_cassert.h: Use system_header pragma.
	* bits/std_cctype.h: Likewise.
	* bits/std_cerrno.h: Likewise.
	* bits/std_cfloat.h: Likewise.
	* bits/std_climits.h: Likewise.
	* bits/std_clocale.h: Likewise.
	* bits/std_cmath.h: Likewise.
	* bits/std_csetjmp.h: Likewise.
	* bits/std_csignal.h: Likewise.
	* bits/std_cstdarg.h: Likewise.
	* bits/std_cstddef.h: Likewise.
	* bits/std_cstdio.h: Likewise.
	* bits/std_cstdlib.h: Likewise.
	* bits/std_cstring.h: Likewise.
	* bits/std_ctime.h: Likewise.
	* bits/std_cwchar.h: Likewise.
	* bits/std_cwctype.h: Likewise.
	* bits/std_exception.h: Likewise.
	* bits/std_new.h: Likewise.
	* bits/std_typeinfo.h: Likewise.
	* shadow/bits/std_cassert.h: Likewise.
	* shadow/bits/std_cctype.h: Likewise.
	* shadow/bits/std_cerrno.h: Likewise.
	* shadow/bits/std_cfloat.h: Likewise.
	* shadow/bits/std_climits.h: Likewise.
	* shadow/bits/std_clocale.h: Likewise.
	* shadow/bits/std_cmath.h: Likewise.
	* shadow/bits/std_csetjmp.h: Likewise.
	* shadow/bits/std_csignal.h: Likewise.
	* shadow/bits/std_cstdarg.h: Likewise.
	* shadow/bits/std_cstddef.h: Likewise.
	* shadow/bits/std_cstdio.h: Likewise.
	* shadow/bits/std_cstdlib.h: Likewise.
	* shadow/bits/std_cstring.h: Likewise.
	* shadow/bits/std_ctime.h: Likewise.
	* shadow/bits/std_cwchar.h: Likewise.
	* shadow/bits/std_cwctype.h: Likewise.
	* shadow/bits/wrap_libio.h: Likewise.
	* shadow/bits/wrap_unistd.h: Likewise.
	* shadow/sys/cdefs.h: Likewise.


Index: bits/std_cassert.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cassert.h,v
retrieving revision 1.1
diff -p -r1.1 std_cassert.h
*** std_cassert.h	2000/04/21 20:33:28	1.1
--- std_cassert.h	2000/05/16 22:13:17
***************
*** 35,38 ****
--- 35,39 ----
  
  // No include guards on this header...
  
+ # pragma system_header
  # include_next <assert.h>
Index: bits/std_cctype.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cctype.h,v
retrieving revision 1.2
diff -p -r1.2 std_cctype.h
*** std_cctype.h	2000/05/11 02:40:33	1.2
--- std_cctype.h	2000/05/16 22:13:17
***************
*** 39,44 ****
--- 39,45 ----
  #define __NO_CTYPE 1
  #endif
  
+ # pragma system_header
  # include_next <ctype.h>
  
  // Sequester the C non-inline implementations in the _C_Swamp::
Index: bits/std_cerrno.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cerrno.h,v
retrieving revision 1.1
diff -p -r1.1 std_cerrno.h
*** std_cerrno.h	2000/04/21 20:33:28	1.1
--- std_cerrno.h	2000/05/16 22:13:17
***************
*** 35,39 ****
--- 35,40 ----
  
  #ifndef _CPP_CERRNO
  #define _CPP_CERRNO 1
+ # pragma system_header
  # include_next <errno.h>
  #endif
Index: bits/std_cfloat.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cfloat.h,v
retrieving revision 1.1
diff -p -r1.1 std_cfloat.h
*** std_cfloat.h	2000/04/21 20:33:28	1.1
--- std_cfloat.h	2000/05/16 22:13:17
***************
*** 35,40 ****
--- 35,41 ----
  
  #ifndef _CPP_CFLOAT
  #define _CPP_CFLOAT 1
+ # pragma system_header
  # include_next <float.h>
  
  #if 0
Index: bits/std_climits.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_climits.h,v
retrieving revision 1.1
diff -p -r1.1 std_climits.h
*** std_climits.h	2000/04/21 20:33:28	1.1
--- std_climits.h	2000/05/16 22:13:17
***************
*** 35,39 ****
--- 35,40 ----
  
  #ifndef _CPP_CLIMITS
  #define _CPP_CLIMITS	1
+ # pragma system_header
  # include_next <limits.h>
  #endif
Index: bits/std_clocale.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_clocale.h,v
retrieving revision 1.1
diff -p -r1.1 std_clocale.h
*** std_clocale.h	2000/04/21 20:33:28	1.1
--- std_clocale.h	2000/05/16 22:13:17
***************
*** 35,40 ****
--- 35,41 ----
  
  #ifndef _CPP_CLOCALE
  #define _CPP_CLOCALE     1
+ # pragma system_header
  # include_next <locale.h>
  #endif
  
Index: bits/std_cmath.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cmath.h,v
retrieving revision 1.2
diff -p -r1.2 std_cmath.h
*** std_cmath.h	2000/05/11 02:40:33	1.2
--- std_cmath.h	2000/05/16 22:13:17
***************
*** 35,40 ****
--- 35,41 ----
  
  #ifndef _CPP_CMATH
  #define _CPP_CMATH 1
+ # pragma system_header
  # include_next <math.h>
  # include_next <stdlib.h>
  
Index: bits/std_csetjmp.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_csetjmp.h,v
retrieving revision 1.1
diff -p -r1.1 std_csetjmp.h
*** std_csetjmp.h	2000/04/21 20:33:28	1.1
--- std_csetjmp.h	2000/05/16 22:13:17
***************
*** 35,39 ****
--- 35,40 ----
  
  #ifndef _CPP_CSETJMP
  #define _CPP_CSETJMP 1
+ # pragma system_header
  # include_next <setjmp.h>
  #endif
Index: bits/std_csignal.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_csignal.h,v
retrieving revision 1.1
diff -p -r1.1 std_csignal.h
*** std_csignal.h	2000/04/21 20:33:28	1.1
--- std_csignal.h	2000/05/16 22:13:17
***************
*** 35,39 ****
--- 35,40 ----
  
  #ifndef _CPP_CSIGNAL
  #define _CPP_CSIGNAL 1
+ # pragma system_header
  # include_next <signal.h>
  #endif
Index: bits/std_cstdarg.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cstdarg.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstdarg.h
*** std_cstdarg.h	2000/04/21 20:33:28	1.1
--- std_cstdarg.h	2000/05/16 22:13:17
***************
*** 35,39 ****
--- 35,40 ----
  
  #ifndef _CPP_CSTDARG
  #define _CPP_CSTDARG 1
+ # pragma system_header
  # include_next <stdarg.h>
  #endif
Index: bits/std_cstddef.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cstddef.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstddef.h
*** std_cstddef.h	2000/04/21 20:33:28	1.1
--- std_cstddef.h	2000/05/16 22:13:17
***************
*** 35,39 ****
--- 35,40 ----
  
  #ifndef _CPP_CSTDDEF
  #define _CPP_CSTDDEF 1
+ # pragma system_header
  # include_next <stddef.h>
  #endif
Index: bits/std_cstdio.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cstdio.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstdio.h
*** std_cstdio.h	2000/04/21 20:33:28	1.1
--- std_cstdio.h	2000/05/16 22:13:17
***************
*** 35,40 ****
--- 35,41 ----
  
  #ifndef _CPP_CSTDIO
  #define _CPP_CSTDIO 1
+ # pragma system_header
  # include_next <stdio.h>
  
  #ifndef SEEK_CUR
Index: bits/std_cstdlib.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cstdlib.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstdlib.h
*** std_cstdlib.h	2000/04/21 20:33:28	1.1
--- std_cstdlib.h	2000/05/16 22:13:17
***************
*** 41,46 ****
--- 41,47 ----
  #define __USE_ISOC9X 1
  #endif
  
+ # pragma system_header
  # include_next <stdlib.h>
  
  #endif // _CPP_CSTDLIB
Index: bits/std_cstring.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cstring.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstring.h
*** std_cstring.h	2000/04/21 20:33:28	1.1
--- std_cstring.h	2000/05/16 22:13:17
***************
*** 39,43 ****
--- 39,44 ----
  // We must not see the optimized string functions GNU libc defines.
  #  define __NO_STRING_INLINES
  # endif
+ # pragma system_header
  # include_next <string.h>
  #endif
Index: bits/std_ctime.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_ctime.h,v
retrieving revision 1.1
diff -p -r1.1 std_ctime.h
*** std_ctime.h	2000/04/21 20:33:28	1.1
--- std_ctime.h	2000/05/16 22:13:17
***************
*** 35,39 ****
--- 35,40 ----
  
  #ifndef _CPP_CTIME
  #define _CPP_CTIME 1
+ # pragma system_header
  # include_next <time.h>
  #endif
Index: bits/std_cwchar.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cwchar.h,v
retrieving revision 1.1
diff -p -r1.1 std_cwchar.h
*** std_cwchar.h	2000/04/21 20:33:28	1.1
--- std_cwchar.h	2000/05/16 22:13:17
***************
*** 38,43 ****
--- 38,44 ----
  
  #include <bits/c++config.h>
  #ifdef _GLIBCPP_USE_WCHAR_T
+  # pragma system_header
   # include_next <wchar.h>
  #endif 
  
Index: bits/std_cwctype.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_cwctype.h,v
retrieving revision 1.1
diff -p -r1.1 std_cwctype.h
*** std_cwctype.h	2000/04/21 20:33:28	1.1
--- std_cwctype.h	2000/05/16 22:13:17
***************
*** 39,44 ****
--- 39,45 ----
  #define __NO_WCTYPE 1
  #endif
  
+ # pragma system_header
  # include_next <wctype.h>
  
  // Sequester the C non-inline implementations in the _C_Swamp::
Index: bits/std_exception.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_exception.h,v
retrieving revision 1.1
diff -p -r1.1 std_exception.h
*** std_exception.h	2000/04/21 20:33:28	1.1
--- std_exception.h	2000/05/16 22:13:17
***************
*** 30,35 ****
--- 30,36 ----
  #define _CPP_EXCEPTION 1
  
  #ifdef __GNUG__
+ #pragma system_header
  #include_next <exception>
  #else
  
Index: bits/std_new.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_new.h,v
retrieving revision 1.1
diff -p -r1.1 std_new.h
*** std_new.h	2000/04/21 20:33:28	1.1
--- std_new.h	2000/05/16 22:13:17
***************
*** 32,37 ****
--- 32,38 ----
  #include <bits/c++config.h>
  
  #ifdef __GNUG__
+ # pragma system_header
  # include_next <new>
  #else
  
Index: bits/std_typeinfo.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_typeinfo.h,v
retrieving revision 1.1
diff -p -r1.1 std_typeinfo.h
*** std_typeinfo.h	2000/04/21 20:33:28	1.1
--- std_typeinfo.h	2000/05/16 22:13:17
***************
*** 34,39 ****
--- 34,40 ----
  #include <bits/std_exception.h>
  
  #ifdef __GNUG__
+ # pragma system_header
  # include_next <typeinfo>
  #else
  
Index: shadow/bits/std_cassert.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cassert.h,v
retrieving revision 1.1
diff -p -r1.1 std_cassert.h
*** std_cassert.h	2000/04/23 19:42:22	1.1
--- std_cassert.h	2000/05/16 22:13:17
***************
*** 37,42 ****
--- 37,43 ----
  //   defines a global used in other headers, we are sunk.
  
  extern "C" {
+ # pragma system_header
  # include_next <assert.h>
  }
  
Index: shadow/bits/std_cctype.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cctype.h,v
retrieving revision 1.1
diff -p -r1.1 std_cctype.h
*** std_cctype.h	2000/04/23 19:42:22	1.1
--- std_cctype.h	2000/05/16 22:13:17
***************
*** 36,41 ****
--- 36,42 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <ctype.h>
      }
  
Index: shadow/bits/std_cerrno.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cerrno.h,v
retrieving revision 1.1
diff -p -r1.1 std_cerrno.h
*** std_cerrno.h	2000/04/23 19:42:22	1.1
--- std_cerrno.h	2000/05/16 22:13:17
***************
*** 37,42 ****
--- 37,43 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <errno.h>
      }
  
Index: shadow/bits/std_cfloat.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cfloat.h,v
retrieving revision 1.1
diff -p -r1.1 std_cfloat.h
*** std_cfloat.h	2000/04/23 19:42:22	1.1
--- std_cfloat.h	2000/05/16 22:13:17
***************
*** 44,49 ****
--- 44,50 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <float.h>
      }
  
Index: shadow/bits/std_climits.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_climits.h,v
retrieving revision 1.1
diff -p -r1.1 std_climits.h
*** std_climits.h	2000/04/23 19:42:22	1.1
--- std_climits.h	2000/05/16 22:13:17
***************
*** 37,42 ****
--- 37,43 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <limits.h>
      }
      namespace _C_Shadow { }
Index: shadow/bits/std_clocale.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_clocale.h,v
retrieving revision 1.1
diff -p -r1.1 std_clocale.h
*** std_clocale.h	2000/04/23 19:42:22	1.1
--- std_clocale.h	2000/05/16 22:13:17
***************
*** 39,44 ****
--- 39,45 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <locale.h>
      }
  
Index: shadow/bits/std_cmath.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cmath.h,v
retrieving revision 1.1
diff -p -r1.1 std_cmath.h
*** std_cmath.h	2000/04/23 19:42:22	1.1
--- std_cmath.h	2000/05/16 22:13:18
***************
*** 37,42 ****
--- 37,43 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <math.h>
      }
      inline double _CPP_HUGE_VAL_capture()        { return HUGE_VAL; }
Index: shadow/bits/std_csetjmp.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_csetjmp.h,v
retrieving revision 1.1
diff -p -r1.1 std_csetjmp.h
*** std_csetjmp.h	2000/04/23 19:42:22	1.1
--- std_csetjmp.h	2000/05/16 22:13:18
***************
*** 37,42 ****
--- 37,43 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <setjmp.h>
      }
      typedef jmp_buf   _CPP_jmp_buf_capture;
Index: shadow/bits/std_csignal.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_csignal.h,v
retrieving revision 1.1
diff -p -r1.1 std_csignal.h
*** std_csignal.h	2000/04/23 19:42:22	1.1
--- std_csignal.h	2000/05/16 22:13:18
***************
*** 37,42 ****
--- 37,43 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <signal.h>
        typedef void (*_CPP_CSIGFUN_capture)(int);  // a C function pointer
        typedef sig_atomic_t _CPP_sig_atomic_t_capture; 
Index: shadow/bits/std_cstdarg.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cstdarg.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstdarg.h
*** std_cstdarg.h	2000/04/23 19:42:22	1.1
--- std_cstdarg.h	2000/05/16 22:13:18
***************
*** 37,42 ****
--- 37,43 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <stdarg.h>
      }
      typedef va_list   _CPP_va_list_capture;
Index: shadow/bits/std_cstddef.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cstddef.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstddef.h
*** std_cstddef.h	2000/04/23 19:42:22	1.1
--- std_cstddef.h	2000/05/16 22:13:18
***************
*** 37,42 ****
--- 37,43 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <stddef.h>
      }
      typedef ptrdiff_t _CPP_ptrdiff_t_capture; 
Index: shadow/bits/std_cstdio.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cstdio.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstdio.h
*** std_cstdio.h	2000/04/23 19:42:22	1.1
--- std_cstdio.h	2000/05/16 22:13:18
***************
*** 47,52 ****
--- 47,53 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <stdio.h>
      }
      // size_t handled in <cstddef>
Index: shadow/bits/std_cstdlib.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cstdlib.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstdlib.h
*** std_cstdlib.h	2000/04/23 19:42:22	1.1
--- std_cstdlib.h	2000/05/16 22:13:18
***************
*** 43,48 ****
--- 43,49 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <stdlib.h>
        typedef int (*_C_cmp_fun_ptr)(const void*, const void*);  // C fn ptr
      }
Index: shadow/bits/std_cstring.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cstring.h,v
retrieving revision 1.1
diff -p -r1.1 std_cstring.h
*** std_cstring.h	2000/04/23 19:42:22	1.1
--- std_cstring.h	2000/05/16 22:13:18
***************
*** 43,48 ****
--- 43,49 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <string.h>
      }
  
Index: shadow/bits/std_ctime.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_ctime.h,v
retrieving revision 1.1
diff -p -r1.1 std_ctime.h
*** std_ctime.h	2000/04/23 19:42:22	1.1
--- std_ctime.h	2000/05/16 22:13:18
***************
*** 39,44 ****
--- 39,45 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <time.h>
      }
      inline clock_t _CPP_CLOCKS_PER_SEC_capture() 
Index: shadow/bits/std_cwchar.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cwchar.h,v
retrieving revision 1.1
diff -p -r1.1 std_cwchar.h
*** std_cwchar.h	2000/04/23 19:42:22	1.1
--- std_cwchar.h	2000/05/16 22:13:18
***************
*** 43,48 ****
--- 43,49 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <wchar.h>
      }
      // NULL, size_t handled in <cstddef>
Index: shadow/bits/std_cwctype.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/std_cwctype.h,v
retrieving revision 1.1
diff -p -r1.1 std_cwctype.h
*** std_cwctype.h	2000/04/23 19:42:22	1.1
--- std_cwctype.h	2000/05/16 22:13:18
***************
*** 41,46 ****
--- 41,47 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <wctype.h>
      }
      typedef wctype_t _CPP_wctype_t_capture;
Index: shadow/bits/wrap_libio.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/wrap_libio.h,v
retrieving revision 1.1
diff -p -r1.1 wrap_libio.h
*** wrap_libio.h	2000/04/23 19:42:22	1.1
--- wrap_libio.h	2000/05/16 22:13:18
***************
*** 39,44 ****
--- 39,45 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <libio.h>
      }
  
Index: shadow/bits/wrap_unistd.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/bits/wrap_unistd.h,v
retrieving revision 1.1
diff -p -r1.1 wrap_unistd.h
*** wrap_unistd.h	2000/04/23 19:42:22	1.1
--- wrap_unistd.h	2000/05/16 22:13:18
***************
*** 39,44 ****
--- 39,45 ----
    namespace _C_Swamp {
      extern "C" {
  #     define _IN_C_SWAMP_
+ #     pragma system_header
  #     include_next <unistd.h>
      }
  
Index: shadow/sys/cdefs.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/shadow/sys/cdefs.h,v
retrieving revision 1.1
diff -p -r1.1 cdefs.h
*** cdefs.h	2000/04/23 19:42:39	1.1
--- cdefs.h	2000/05/16 22:13:18
***************
*** 31,36 ****
--- 31,37 ----
  #ifndef _CPP_SYS_CDEFS_H
  # define _CPP_SYS_CDEFS_H
  
+ # pragma system_header
  # include_next <sys/cdefs.h>
  
  // glibc-2 hackery.  Other systems likely require other hacks.


More information about the Gcc-patches mailing list