summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/stdarg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include/stdarg.h')
-rw-r--r--sys/amd64/include/stdarg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/amd64/include/stdarg.h b/sys/amd64/include/stdarg.h
index 60a204a..d3612d2 100644
--- a/sys/amd64/include/stdarg.h
+++ b/sys/amd64/include/stdarg.h
@@ -39,7 +39,7 @@
typedef __va_list va_list;
#endif
-#if defined(__GNUC__)
+#if defined(__GNUCLIKE_BUILTIN_STDARG)
#define va_start(ap, last) \
__builtin_stdarg_start((ap), (last))
@@ -67,6 +67,8 @@ typedef __va_list va_list;
(*(type *)((ap) += __va_size(type), (ap) - __va_size(type)))
#define va_end(ap)
+#else
+#error this file needs to be ported to your compiler
#endif
#endif /* !_MACHINE_STDARG_H_ */
OpenPOWER on IntegriCloud