mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
sys/_stdarg.h: drop cdefs.h and _types.h polution
Rely in sys/_visible for visibility macros and use __buitin_va_list instead of __va_list everywere we declare va_list. Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
This commit is contained in:
parent
2e783ea70a
commit
c190cd94b7
3 changed files with 5 additions and 6 deletions
|
|
@ -74,7 +74,7 @@ typedef __off64_t off64_t;
|
|||
|
||||
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
|
||||
#ifndef _VA_LIST_DECLARED
|
||||
typedef __va_list va_list;
|
||||
typedef __builtin_va_list va_list;
|
||||
#define _VA_LIST_DECLARED
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ typedef __size_t size_t;
|
|||
|
||||
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE
|
||||
#ifndef _VA_LIST_DECLARED
|
||||
typedef __va_list va_list;
|
||||
typedef __builtin_va_list va_list;
|
||||
#define _VA_LIST_DECLARED
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -31,12 +31,11 @@
|
|||
#ifndef _SYS__STDARG_H_
|
||||
#define _SYS__STDARG_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/_types.h>
|
||||
#include <sys/_visible.h>
|
||||
|
||||
#ifndef _VA_LIST_DECLARED
|
||||
#define _VA_LIST_DECLARED
|
||||
typedef __va_list va_list;
|
||||
#define _VA_LIST_DECLARED
|
||||
typedef __builtin_va_list va_list;
|
||||
#endif
|
||||
|
||||
#define va_start(ap, last) __builtin_va_start((ap), (last))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue