summaryrefslogtreecommitdiff
path: root/include/features.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/features.h')
-rw-r--r--include/features.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/features.h b/include/features.h
index 6f920d8ad..f5b8cf74e 100644
--- a/include/features.h
+++ b/include/features.h
@@ -15,9 +15,11 @@
* their developers intended. This is IMHO, pardonable, since these defines
* are not really intended to check for the presence of a particular library,
* but rather are used to define an _interface_. */
-#define __GNU_LIBRARY__ 6
-#define __GLIBC__ 2
-#define __GLIBC_MINOR__ 1
+#if !defined __LIBC__ || defined __FORCE_GLIBC__
+# define __GNU_LIBRARY__ 6
+# define __GLIBC__ 2
+# define __GLIBC_MINOR__ 1
+#endif
/* Make a half-hearted attempt to accomodate non-gcc compilers */
#ifndef __GNUC__