feature_tests.h: define _XPG7, _POSIX_C_SOURCE & __EXTENSIONS__ by default
commit938afa089bb905db6a821d0431069e749cd6c273
authorLauri Tirkkonen <lotheac@iki.fi>
Wed, 26 Dec 2018 14:37:23 +0000 (26 16:37 +0200)
committerLauri Tirkkonen <lotheac@iki.fi>
Sat, 29 Dec 2018 09:29:11 +0000 (29 11:29 +0200)
treeeb7d4f730f865c37063ef8627bca6c04eec013ce
parent087136b83e4caf9b51ef5ac915cc6e4855cb028b
feature_tests.h: define _XPG7, _POSIX_C_SOURCE & __EXTENSIONS__ by default

this is a pretty large hammer that aims to make our default compilation
environment saner. there's a lot more work to do, but this will
hopefully make things easier.

__EXTENSIONS__ by default sounds a bit weird, but things break pretty
spectacularly if we only define XPG/POSIX without it - we have a bunch
of "interesting" checks like:
    #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
which would probably be better hidden behind _UNLEASHED_VISIBLE or
something like that, if they're nonstandard symbols which we want
visible by default.
include/sys/feature_tests.h