summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2014-02-19 15:31:17 -0500
committerGaetan Nadon <memsize@videotron.ca>2014-04-17 10:21:14 -0400
commitd789b704ca3282d8673085dda473b6a91cd4cb4e (patch)
tree3fd5386f30f90037506a3c8ec6400853b38a4628 /image
parent1f3bc1686261272594f06ddc8adf528317afcfb4 (diff)
config: use AC_CONFIG_HEADERS to create a config.h file
This file contains C preprocessor #define statements which replace the current -Ds added to each compilation invocation. This makes the gcc output command easier to read and prevents exceeding the max line limits on some computers. This is the preferred method in al the xorg modules. Reviewed-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'image')
-rw-r--r--image/test_bitmap.c4
-rw-r--r--image/test_formats.c4
-rw-r--r--image/test_swap.c4
-rw-r--r--image/test_xcb_image.c4
-rw-r--r--image/test_xcb_image_shm.c4
-rw-r--r--image/xcb_image.c4
6 files changed, 24 insertions, 0 deletions
diff --git a/image/test_bitmap.c b/image/test_bitmap.c
index 5bf7955..ff57776 100644
--- a/image/test_bitmap.c
+++ b/image/test_bitmap.c
@@ -27,6 +27,10 @@
* prior written authorization from the authors.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/image/test_formats.c b/image/test_formats.c
index a167876..307e623 100644
--- a/image/test_formats.c
+++ b/image/test_formats.c
@@ -26,6 +26,10 @@
* prior written authorization from the authors.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/image/test_swap.c b/image/test_swap.c
index a34e23e..688ae68 100644
--- a/image/test_swap.c
+++ b/image/test_swap.c
@@ -26,6 +26,10 @@
* prior written authorization from the authors.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/image/test_xcb_image.c b/image/test_xcb_image.c
index 25ff697..474dea0 100644
--- a/image/test_xcb_image.c
+++ b/image/test_xcb_image.c
@@ -28,6 +28,10 @@
/* gcc -g -O2 -Wall `pkg-config --cflags --libs xcb` -o test xcb_image.o test_xcb_image.c */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/image/test_xcb_image_shm.c b/image/test_xcb_image_shm.c
index 3162a6e..df4ceca 100644
--- a/image/test_xcb_image_shm.c
+++ b/image/test_xcb_image_shm.c
@@ -24,6 +24,10 @@
* authorization from the authors.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
diff --git a/image/xcb_image.c b/image/xcb_image.c
index 5cfe383..4889c26 100644
--- a/image/xcb_image.c
+++ b/image/xcb_image.c
@@ -23,6 +23,10 @@
* authorization from the authors.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>