diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-09 03:33:55 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-09 03:33:55 +0000 |
commit | 28de29088084e5f544b79760748ef28739b5c769 (patch) | |
tree | fc710fe45664ba309e3843bbe4bcb279ba5cbd49 /libdimension | |
parent | 0015b8757d2168ebfc75fc7ad6475e223d88d71c (diff) | |
download | dimension-28de29088084e5f544b79760748ef28739b5c769.tar.xz |
Set the _XOPEN_SOURCE feature test macro correctly in dimension.h, so
that pthread.h defines pthread_rwlock_t for us.
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/dimension.h | 5 |
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 |