summaryrefslogtreecommitdiff
path: root/cross/i386-cygwin32/files/featuretest.h
diff options
context:
space:
mode:
Diffstat (limited to 'cross/i386-cygwin32/files/featuretest.h')
-rw-r--r--cross/i386-cygwin32/files/featuretest.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/cross/i386-cygwin32/files/featuretest.h b/cross/i386-cygwin32/files/featuretest.h
new file mode 100644
index 00000000000..c88c8b5dd82
--- /dev/null
+++ b/cross/i386-cygwin32/files/featuretest.h
@@ -0,0 +1,21 @@
+/* $NetBSD: featuretest.h,v 1.1 2000/11/06 05:31:43 minoura Exp $ /*
+/* from: NetBSD: featuretest.h,v 1.2 1998/10/24 16:30:56 kleink Exp */
+
+/*
+ * Written by Klaus Klein <kleink@NetBSD.ORG>, February 2, 1998.
+ * Public domain.
+ */
+
+#ifndef _SYS_FEATURETEST_H_
+#define _SYS_FEATURETEST_H_
+
+#if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE)
+#define _POSIX_C_SOURCE 1L
+#endif
+
+#if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \
+ !defined(_REENTRANT)
+#define _REENTRANT
+#endif
+
+#endif /* !defined(_SYS_FEATURETEST_H_) */