Commit 825abef4 by Stan Shebs Committed by Stan Shebs

stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined, plays nice with Darwin headers.

        * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
        plays nice with Darwin headers.
        (_BSD_RUNE_T_DEFINED_): Likewise. (from Andr

Co-Authored-By: Andreas Tobler <toa@pop.agri.ch>

From-SVN: r55971
parent 3d41dbb0
2002-08-01 Stan Shebs <shebs@apple.com>
Andreas Tobler <toa@pop.agri.ch>
* ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
plays nice with Darwin headers.
(_BSD_RUNE_T_DEFINED_): Likewise. (from Andr
2002-08-01 Zack Weinberg <zack@codesourcery.com> 2002-08-01 Zack Weinberg <zack@codesourcery.com>
* c-common.c (c_common_init): -Wtraditional also implies -Wlong-long. * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
......
...@@ -175,6 +175,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; ...@@ -175,6 +175,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
#ifndef _BSD_SIZE_T_ #ifndef _BSD_SIZE_T_
#ifndef _SIZE_T_DEFINED_ #ifndef _SIZE_T_DEFINED_
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifndef _BSD_SIZE_T_DEFINED_ /* Darwin */
#ifndef ___int_size_t_h #ifndef ___int_size_t_h
#ifndef _GCC_SIZE_T #ifndef _GCC_SIZE_T
#ifndef _SIZET_ #ifndef _SIZET_
...@@ -190,6 +191,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; ...@@ -190,6 +191,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
#define _BSD_SIZE_T_ #define _BSD_SIZE_T_
#define _SIZE_T_DEFINED_ #define _SIZE_T_DEFINED_
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#define _BSD_SIZE_T_DEFINED_ /* Darwin */
#define ___int_size_t_h #define ___int_size_t_h
#define _GCC_SIZE_T #define _GCC_SIZE_T
#define _SIZET_ #define _SIZET_
...@@ -207,6 +209,7 @@ typedef long ssize_t; ...@@ -207,6 +209,7 @@ typedef long ssize_t;
#endif /* _SIZET_ */ #endif /* _SIZET_ */
#endif /* _GCC_SIZE_T */ #endif /* _GCC_SIZE_T */
#endif /* ___int_size_t_h */ #endif /* ___int_size_t_h */
#endif /* _BSD_SIZE_T_DEFINED_ */
#endif /* _SIZE_T_DEFINED */ #endif /* _SIZE_T_DEFINED */
#endif /* _SIZE_T_DEFINED_ */ #endif /* _SIZE_T_DEFINED_ */
#endif /* _BSD_SIZE_T_ */ #endif /* _BSD_SIZE_T_ */
...@@ -239,6 +242,7 @@ typedef long ssize_t; ...@@ -239,6 +242,7 @@ typedef long ssize_t;
#ifndef _WCHAR_T_ #ifndef _WCHAR_T_
#ifndef _BSD_WCHAR_T_ #ifndef _BSD_WCHAR_T_
#ifndef _BSD_WCHAR_T_DEFINED_ /* Darwin */ #ifndef _BSD_WCHAR_T_DEFINED_ /* Darwin */
#ifndef _BSD_RUNE_T_DEFINED_ /* Darwin */
#ifndef _WCHAR_T_DEFINED_ #ifndef _WCHAR_T_DEFINED_
#ifndef _WCHAR_T_DEFINED #ifndef _WCHAR_T_DEFINED
#ifndef _WCHAR_T_H #ifndef _WCHAR_T_H
...@@ -276,6 +280,7 @@ typedef long ssize_t; ...@@ -276,6 +280,7 @@ typedef long ssize_t;
#if !defined (_ANSI_SOURCE) && !defined (_POSIX_SOURCE) #if !defined (_ANSI_SOURCE) && !defined (_POSIX_SOURCE)
typedef _BSD_RUNE_T_ rune_t; typedef _BSD_RUNE_T_ rune_t;
#define _BSD_WCHAR_T_DEFINED_ #define _BSD_WCHAR_T_DEFINED_
#define _BSD_RUNE_T_DEFINED_ /* Darwin */
#if defined (__FreeBSD__) #if defined (__FreeBSD__)
/* Why is this file so hard to maintain properly? In constrast to /* Why is this file so hard to maintain properly? In constrast to
the comment above regarding BSD/386 1.1, on FreeBSD for as long the comment above regarding BSD/386 1.1, on FreeBSD for as long
...@@ -299,6 +304,7 @@ typedef __WCHAR_TYPE__ wchar_t; ...@@ -299,6 +304,7 @@ typedef __WCHAR_TYPE__ wchar_t;
#endif #endif
#endif #endif
#endif #endif
#endif /* _BSD_RUNE_T_DEFINED_ */
#endif #endif
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment