mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-03 21:45:51 +08:00
Avoid <sys/cdefs.h> dependency in <sys/_types.h>
Including <sys/cdefs.h> could result in cyclic header dependencies. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
4eb2e29fde
commit
c9773e9616
@ -210,10 +210,15 @@ typedef unsigned short __nlink_t;
|
|||||||
typedef long __suseconds_t; /* microseconds (signed) */
|
typedef long __suseconds_t; /* microseconds (signed) */
|
||||||
typedef unsigned long __useconds_t; /* microseconds (unsigned) */
|
typedef unsigned long __useconds_t; /* microseconds (unsigned) */
|
||||||
|
|
||||||
#ifdef __GNUCLIKE_BUILTIN_VARARGS
|
/*
|
||||||
|
* Must be identical to the __GNUCLIKE_BUILTIN_VAALIST definition in
|
||||||
|
* <sys/cdefs.h>. The <sys/cdefs.h> must not be included here to avoid cyclic
|
||||||
|
* header dependencies.
|
||||||
|
*/
|
||||||
|
#if __GNUC_MINOR__ > 95 || __GNUC__ >= 3
|
||||||
typedef __builtin_va_list __va_list;
|
typedef __builtin_va_list __va_list;
|
||||||
#else
|
#else
|
||||||
typedef char * __va_list;
|
typedef char * __va_list;
|
||||||
#endif /* __GNUCLIKE_BUILTIN_VARARGS */
|
#endif
|
||||||
|
|
||||||
#endif /* _SYS__TYPES_H */
|
#endif /* _SYS__TYPES_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user