summaryrefslogtreecommitdiffstats
path: root/libasprintf
diff options
context:
space:
mode:
Diffstat (limited to 'libasprintf')
-rw-r--r--libasprintf/printf-args.h2
-rw-r--r--libasprintf/vasnprintf.h2
-rw-r--r--libasprintf/vasprintf.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/libasprintf/printf-args.h b/libasprintf/printf-args.h
index cc0d321..55c8191 100644
--- a/libasprintf/printf-args.h
+++ b/libasprintf/printf-args.h
@@ -25,7 +25,7 @@
#endif
/* Get va_list. */
-#if __STDC__ || defined __cplusplus
+#if __STDC__ || defined __SUNPRO_C || defined __cplusplus
# include <stdarg.h>
#else
# include <varargs.h>
diff --git a/libasprintf/vasnprintf.h b/libasprintf/vasnprintf.h
index 6b68934..903e7bc 100644
--- a/libasprintf/vasnprintf.h
+++ b/libasprintf/vasnprintf.h
@@ -28,7 +28,7 @@
#endif
/* Get va_list. */
-#if __STDC__ || defined __cplusplus
+#if __STDC__ || defined __SUNPRO_C || defined __cplusplus
# include <stdarg.h>
#else
# include <varargs.h>
diff --git a/libasprintf/vasprintf.h b/libasprintf/vasprintf.h
index b99e629..3143419 100644
--- a/libasprintf/vasprintf.h
+++ b/libasprintf/vasprintf.h
@@ -28,7 +28,7 @@
#endif
/* Get va_list. */
-#if __STDC__ || defined __cplusplus
+#if __STDC__ || defined __SUNPRO_C || defined __cplusplus
# include <stdarg.h>
#else
# include <varargs.h>