From 8e93afc9765f1de613c65a76e9a86e17db96e653 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 27 Jul 2014 14:46:45 +0100 Subject: all: include config.h only when available and use its defines ... rather than explicitly redefining HAVE_STDINT_H and _GNU_SOURCE. Signed-off-by: Emil Velikov --- intel/test_decode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'intel') diff --git a/intel/test_decode.c b/intel/test_decode.c index b710f342..bef9d99f 100644 --- a/intel/test_decode.c +++ b/intel/test_decode.c @@ -21,7 +21,9 @@ * IN THE SOFTWARE. */ -#define _GNU_SOURCE +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include @@ -33,7 +35,6 @@ #include #include -#include "config.h" #include "intel_bufmgr.h" #include "intel_chipset.h" -- cgit v1.2.3