|
@@ -48,7 +48,17 @@
|
|
* Use compiler specific <stdarg.h> is a good practice for even when
|
|
* Use compiler specific <stdarg.h> is a good practice for even when
|
|
* -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined.
|
|
* -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined.
|
|
*/
|
|
*/
|
|
|
|
+#ifndef va_arg
|
|
|
|
+#ifdef ACPI_USE_BUILTIN_STDARG
|
|
|
|
+typedef __builtin_va_list va_list;
|
|
|
|
+#define va_start(v, l) __builtin_va_start(v, l)
|
|
|
|
+#define va_end(v) __builtin_va_end(v)
|
|
|
|
+#define va_arg(v, l) __builtin_va_arg(v, l)
|
|
|
|
+#define va_copy(d, s) __builtin_va_copy(d, s)
|
|
|
|
+#else
|
|
#include <stdarg.h>
|
|
#include <stdarg.h>
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
|
|
#define ACPI_INLINE __inline__
|
|
#define ACPI_INLINE __inline__
|
|
|
|
|