diff options
author | Emil Velikov | 2014-07-27 08:46:45 -0500 |
---|---|---|
committer | Emil Velikov | 2014-09-01 10:06:01 -0500 |
commit | 8e93afc9765f1de613c65a76e9a86e17db96e653 (patch) | |
tree | 55d1f95367e5e515bacab3c34c64b1d462f94070 /libkms | |
parent | 391bba9c4cd2825eadaa648df10e3d1c99c66e80 (diff) | |
download | external-libdrm-8e93afc9765f1de613c65a76e9a86e17db96e653.tar.gz external-libdrm-8e93afc9765f1de613c65a76e9a86e17db96e653.tar.xz external-libdrm-8e93afc9765f1de613c65a76e9a86e17db96e653.zip |
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.c | 2 | ||||
-rw-r--r-- | libkms/dumb.c | 4 | ||||
-rw-r--r-- | libkms/exynos.c | 4 | ||||
-rw-r--r-- | libkms/intel.c | 4 | ||||
-rw-r--r-- | libkms/linux.c | 2 | ||||
-rw-r--r-- | libkms/nouveau.c | 4 | ||||
-rw-r--r-- | libkms/radeon.c | 4 | ||||
-rw-r--r-- | libkms/vmwgfx.c | 4 |
8 files changed, 22 insertions, 6 deletions
diff --git a/libkms/api.c b/libkms/api.c index 5befaa0f..b512c42d 100644 --- a/libkms/api.c +++ b/libkms/api.c | |||
@@ -26,7 +26,9 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | 28 | ||
29 | #ifdef HAVE_CONFIG_H | ||
29 | #include "config.h" | 30 | #include "config.h" |
31 | #endif | ||
30 | #include <errno.h> | 32 | #include <errno.h> |
31 | #include <stdlib.h> | 33 | #include <stdlib.h> |
32 | #include <string.h> | 34 | #include <string.h> |
diff --git a/libkms/dumb.c b/libkms/dumb.c index 440efb31..794282fb 100644 --- a/libkms/dumb.c +++ b/libkms/dumb.c | |||
@@ -26,7 +26,9 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | 28 | ||
29 | #define HAVE_STDINT_H | 29 | #ifdef HAVE_CONFIG_H |
30 | #include "config.h" | ||
31 | #endif | ||
30 | #define _FILE_OFFSET_BITS 64 | 32 | #define _FILE_OFFSET_BITS 64 |
31 | 33 | ||
32 | #include <errno.h> | 34 | #include <errno.h> |
diff --git a/libkms/exynos.c b/libkms/exynos.c index 93e36a12..243915b5 100644 --- a/libkms/exynos.c +++ b/libkms/exynos.c | |||
@@ -11,7 +11,9 @@ | |||
11 | * option) any later version. | 11 | * option) any later version. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #define HAVE_STDINT_H | 14 | #ifdef HAVE_CONFIG_H |
15 | #include "config.h" | ||
16 | #endif | ||
15 | #define _FILE_OFFSET_BITS 64 | 17 | #define _FILE_OFFSET_BITS 64 |
16 | 18 | ||
17 | #include <errno.h> | 19 | #include <errno.h> |
diff --git a/libkms/intel.c b/libkms/intel.c index abae4525..92f1cf25 100644 --- a/libkms/intel.c +++ b/libkms/intel.c | |||
@@ -26,7 +26,9 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | 28 | ||
29 | #define HAVE_STDINT_H | 29 | #ifdef HAVE_CONFIG_H |
30 | #include "config.h" | ||
31 | #endif | ||
30 | #define _FILE_OFFSET_BITS 64 | 32 | #define _FILE_OFFSET_BITS 64 |
31 | 33 | ||
32 | #include <errno.h> | 34 | #include <errno.h> |
diff --git a/libkms/linux.c b/libkms/linux.c index 9b4f29e1..17e1d588 100644 --- a/libkms/linux.c +++ b/libkms/linux.c | |||
@@ -30,7 +30,9 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | 32 | ||
33 | #ifdef HAVE_CONFIG_H | ||
33 | #include "config.h" | 34 | #include "config.h" |
35 | #endif | ||
34 | #include <errno.h> | 36 | #include <errno.h> |
35 | #include <stdio.h> | 37 | #include <stdio.h> |
36 | #include <stdlib.h> | 38 | #include <stdlib.h> |
diff --git a/libkms/nouveau.c b/libkms/nouveau.c index 608092f5..2de827d9 100644 --- a/libkms/nouveau.c +++ b/libkms/nouveau.c | |||
@@ -26,7 +26,9 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | 28 | ||
29 | #define HAVE_STDINT_H | 29 | #ifdef HAVE_CONFIG_H |
30 | #include "config.h" | ||
31 | #endif | ||
30 | #define _FILE_OFFSET_BITS 64 | 32 | #define _FILE_OFFSET_BITS 64 |
31 | 33 | ||
32 | #include <errno.h> | 34 | #include <errno.h> |
diff --git a/libkms/radeon.c b/libkms/radeon.c index f5e382ae..29375c4c 100644 --- a/libkms/radeon.c +++ b/libkms/radeon.c | |||
@@ -26,7 +26,9 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | 28 | ||
29 | #define HAVE_STDINT_H | 29 | #ifdef HAVE_CONFIG_H |
30 | #include "config.h" | ||
31 | #endif | ||
30 | #define _FILE_OFFSET_BITS 64 | 32 | #define _FILE_OFFSET_BITS 64 |
31 | 33 | ||
32 | #include <errno.h> | 34 | #include <errno.h> |
diff --git a/libkms/vmwgfx.c b/libkms/vmwgfx.c index d594b3bd..598f383c 100644 --- a/libkms/vmwgfx.c +++ b/libkms/vmwgfx.c | |||
@@ -26,7 +26,9 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | 28 | ||
29 | #define HAVE_STDINT_H | 29 | #ifdef HAVE_CONFIG_H |
30 | #include "config.h" | ||
31 | #endif | ||
30 | #define _FILE_OFFSET_BITS 64 | 32 | #define _FILE_OFFSET_BITS 64 |
31 | 33 | ||
32 | #include <errno.h> | 34 | #include <errno.h> |