Add a bogus definition of __va_list for use by lint. Make it visible
only when lint is defined to protect builds with non-GNU compilers.
This commit is contained in:
parent
ff2e59e0f9
commit
81e0b13142
@ -100,10 +100,14 @@ typedef __uint64_t __vm_size_t;
|
||||
typedef __builtin_va_list __va_list; /* internally known to gcc */
|
||||
#if !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
|
||||
#define __GNUC_VA_LIST
|
||||
typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/
|
||||
typedef __va_list __gnuc_va_list; /* compat. with GNU headers */
|
||||
#endif
|
||||
#else
|
||||
#ifdef lint
|
||||
typedef char * __va_list; /* non-functional */
|
||||
#else
|
||||
#error Must add va_list support for this non-GCC compiler.
|
||||
#endif /* lint */
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* !_MACHINE__TYPES_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user