summaryrefslogtreecommitdiff
path: root/tests/drmstat.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-07-27 14:46:45 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2014-09-01 16:06:01 +0100
commit8e93afc9765f1de613c65a76e9a86e17db96e653 (patch)
tree55d1f95367e5e515bacab3c34c64b1d462f94070 /tests/drmstat.c
parent391bba9c4cd2825eadaa648df10e3d1c99c66e80 (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 'tests/drmstat.c')
-rw-r--r--tests/drmstat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/drmstat.c b/tests/drmstat.c
index c51cbc6c..5935d07a 100644
--- a/tests/drmstat.c
+++ b/tests/drmstat.c
@@ -28,7 +28,9 @@
*
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>