diff options
Diffstat (limited to 'src/lib/libast/features/isoc99')
-rw-r--r-- | src/lib/libast/features/isoc99 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/libast/features/isoc99 b/src/lib/libast/features/isoc99 new file mode 100644 index 0000000..e85c9f5 --- /dev/null +++ b/src/lib/libast/features/isoc99 @@ -0,0 +1,13 @@ +if tst -D_ISOC99_SOURCE -lm note{ _ISOC99_SOURCE plays nice }end link{ + #include <sys/types.h> + #include <sys/stat.h> + #include <stdlib.h> + #include <unistd.h> + #include <math.h> + int main() { return signbit(-0.0); } + }end { + #ifndef _ISOC99_SOURCE + #define _ISOC99_SOURCE 1 + #endif + } +endif |