diff options
Diffstat (limited to 'include/acpi/platform/acgcc.h')
-rw-r--r-- | include/acpi/platform/acgcc.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/include/acpi/platform/acgcc.h b/include/acpi/platform/acgcc.h index c5a216c976fa..8f66aaabadf7 100644 --- a/include/acpi/platform/acgcc.h +++ b/include/acpi/platform/acgcc.h | |||
@@ -44,6 +44,12 @@ | |||
44 | #ifndef __ACGCC_H__ | 44 | #ifndef __ACGCC_H__ |
45 | #define __ACGCC_H__ | 45 | #define __ACGCC_H__ |
46 | 46 | ||
47 | /* | ||
48 | * Use compiler specific <stdarg.h> is a good practice for even when | ||
49 | * -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined. | ||
50 | */ | ||
51 | #include <stdarg.h> | ||
52 | |||
47 | #define ACPI_INLINE __inline__ | 53 | #define ACPI_INLINE __inline__ |
48 | 54 | ||
49 | /* Function name is used for debug output. Non-ANSI, compiler-dependent */ | 55 | /* Function name is used for debug output. Non-ANSI, compiler-dependent */ |
@@ -64,17 +70,6 @@ | |||
64 | */ | 70 | */ |
65 | #define ACPI_UNUSED_VAR __attribute__ ((unused)) | 71 | #define ACPI_UNUSED_VAR __attribute__ ((unused)) |
66 | 72 | ||
67 | /* | ||
68 | * Some versions of gcc implement strchr() with a buggy macro. So, | ||
69 | * undef it here. Prevents error messages of this form (usually from the | ||
70 | * file getopt.c): | ||
71 | * | ||
72 | * error: logical '&&' with non-zero constant will always evaluate as true | ||
73 | */ | ||
74 | #ifdef strchr | ||
75 | #undef strchr | ||
76 | #endif | ||
77 | |||
78 | /* GCC supports __VA_ARGS__ in macros */ | 73 | /* GCC supports __VA_ARGS__ in macros */ |
79 | 74 | ||
80 | #define COMPILER_VA_MACRO 1 | 75 | #define COMPILER_VA_MACRO 1 |