summaryrefslogtreecommitdiff
path: root/libkms
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 /libkms
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 'libkms')
-rw-r--r--libkms/api.c2
-rw-r--r--libkms/dumb.c4
-rw-r--r--libkms/exynos.c4
-rw-r--r--libkms/intel.c4
-rw-r--r--libkms/linux.c2
-rw-r--r--libkms/nouveau.c4
-rw-r--r--libkms/radeon.c4
-rw-r--r--libkms/vmwgfx.c4
8 files changed, 22 insertions, 6 deletions
diff --git a/libkms/api.c b/libkms/api.c
index 5befaa0fb58e..b512c42d81fc 100644
--- a/libkms/api.c
+++ b/libkms/api.c
@@ -26,7 +26,9 @@
**************************************************************************/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <errno.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libkms/dumb.c b/libkms/dumb.c
index 440efb31051d..794282fbc376 100644
--- a/libkms/dumb.c
+++ b/libkms/dumb.c
@@ -26,7 +26,9 @@
**************************************************************************/
-#define HAVE_STDINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#define _FILE_OFFSET_BITS 64
#include <errno.h>
diff --git a/libkms/exynos.c b/libkms/exynos.c
index 93e36a12ef27..243915b52d8d 100644
--- a/libkms/exynos.c
+++ b/libkms/exynos.c
@@ -11,7 +11,9 @@
* option) any later version.
*/
-#define HAVE_STDINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#define _FILE_OFFSET_BITS 64
#include <errno.h>
diff --git a/libkms/intel.c b/libkms/intel.c
index abae452574b8..92f1cf25198e 100644
--- a/libkms/intel.c
+++ b/libkms/intel.c
@@ -26,7 +26,9 @@
**************************************************************************/
-#define HAVE_STDINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#define _FILE_OFFSET_BITS 64
#include <errno.h>
diff --git a/libkms/linux.c b/libkms/linux.c
index 9b4f29e11824..17e1d588eff7 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -30,7 +30,9 @@
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/libkms/nouveau.c b/libkms/nouveau.c
index 608092f586d1..2de827d9d829 100644
--- a/libkms/nouveau.c
+++ b/libkms/nouveau.c
@@ -26,7 +26,9 @@
**************************************************************************/
-#define HAVE_STDINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#define _FILE_OFFSET_BITS 64
#include <errno.h>
diff --git a/libkms/radeon.c b/libkms/radeon.c
index f5e382ae4c95..29375c4c324e 100644
--- a/libkms/radeon.c
+++ b/libkms/radeon.c
@@ -26,7 +26,9 @@
**************************************************************************/
-#define HAVE_STDINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#define _FILE_OFFSET_BITS 64
#include <errno.h>
diff --git a/libkms/vmwgfx.c b/libkms/vmwgfx.c
index d594b3bd1f33..598f383ce492 100644
--- a/libkms/vmwgfx.c
+++ b/libkms/vmwgfx.c
@@ -26,7 +26,9 @@
**************************************************************************/
-#define HAVE_STDINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#define _FILE_OFFSET_BITS 64
#include <errno.h>