diff options
author | Daniel Stone <daniel@fooishbar.org> | 2013-05-22 18:03:19 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-06-05 01:16:34 -0400 |
commit | c228e23b055f54d29f2df839cf76a2660917b9f6 (patch) | |
tree | 6f810a3fd6061b2dadb8cc654a795530654debf1 /src/cms-static.c | |
parent | 5238b683e20e619cca92eea2691ba7ca947ead84 (diff) | |
download | weston-c228e23b055f54d29f2df839cf76a2660917b9f6.tar.gz weston-c228e23b055f54d29f2df839cf76a2660917b9f6.tar.bz2 weston-c228e23b055f54d29f2df839cf76a2660917b9f6.zip |
configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS
AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar
macros to expose the largest extent of functionality supported by the
underlying system. This is required since these macros are often
limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually
on some systems hide declarations which are not part of the X/Open spec.
Since this goes into config.h rather than the command line, ensure all
source is consistently including config.h before anything else,
including system libraries. This doesn't need to be guarded by a
HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org
modular transition.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
[pq: rebased and converted more files]
Diffstat (limited to 'src/cms-static.c')
-rw-r--r-- | src/cms-static.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cms-static.c b/src/cms-static.c index 53f2f84a..8a36ed9b 100644 --- a/src/cms-static.c +++ b/src/cms-static.c @@ -20,11 +20,8 @@ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif +#include "config.h" -#define _GNU_SOURCE #include <stdlib.h> #include <string.h> |