diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2014-07-27 14:46:45 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2014-09-01 16:06:01 +0100 |
commit | 8e93afc9765f1de613c65a76e9a86e17db96e653 (patch) | |
tree | 55d1f95367e5e515bacab3c34c64b1d462f94070 /intel | |
parent | 391bba9c4cd2825eadaa648df10e3d1c99c66e80 (diff) |
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 <emil.l.velikov@gmail.com>
Diffstat (limited to 'intel')
-rw-r--r-- | intel/test_decode.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <string.h> #include <stdlib.h> @@ -33,7 +35,6 @@ #include <sys/mman.h> #include <err.h> -#include "config.h" #include "intel_bufmgr.h" #include "intel_chipset.h" |