summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/dimension.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdimension/dimension.h b/libdimension/dimension.h
index 8e93f4b..989eb24 100644
--- a/libdimension/dimension.h
+++ b/libdimension/dimension.h
@@ -25,6 +25,11 @@
#ifndef DIMENSION_H
#define DIMENSION_H
+/* Set some feature test macros so we work even in ANSI C mode */
+#ifndef _XOPEN_SOURCE
+ #define _XOPEN_SOURCE 600
+#endif
+
/* Handle inlines nicely without cheating and making them static. The
DMNSN_INLINE macro is set appropriately for the version of C you're using,
and non-inline versions are emitted in exactly one translation unit when