summaryrefslogtreecommitdiff
path: root/ucontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'ucontext.h')
-rw-r--r--ucontext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ucontext.h b/ucontext.h
index a8e4531..0e34534 100644
--- a/ucontext.h
+++ b/ucontext.h
@@ -48,6 +48,14 @@ SOFTWARE.
# define _POSIX_SOURCE
#endif
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 19901L
+# if (defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L)
+# error POSIX.1-2001 and later require a C99 compiler
+# elif (defined _XOPEN_SOURCE && _XOPEN_SOURCE >= 600)
+# error XOPEN Issue 6 and later require a C99 compiler
+# endif
+#endif
+
#if (defined _XOPEN_SOURCE && ((defined _XOPEN_SOURCE_EXTENDED && _XOPEN_SOURCE_EXTENDED == 1) || 500 <= _XOPEN_SOURCE) && _XOPEN_SOURCE < 700)
/* ./src/ucontext/mcontext_t.c */
#ifndef __TYPE_mcontext_t_DEFINED__