meson,configure: include config.h automatically

This will prevent any more missing `#include "config.h"` bug, at the
cost of having to recompile some files that didn't need to be when
changing build options.

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
main
Eric Engestrom 2018-02-01 11:12:05 +00:00
parent 431f1a147e
commit 0926f0af54
96 changed files with 3 additions and 370 deletions

View File

@ -22,10 +22,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -22,10 +22,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -28,10 +28,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

View File

@ -22,10 +22,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

View File

@ -25,10 +25,6 @@
#ifndef _AMDGPU_INTERNAL_H_ #ifndef _AMDGPU_INTERNAL_H_
#define _AMDGPU_INTERNAL_H_ #define _AMDGPU_INTERNAL_H_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h> #include <assert.h>
#include <pthread.h> #include <pthread.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "amdgpu.h" #include "amdgpu.h"
#include "amdgpu_drm.h" #include "amdgpu_drm.h"
#include "xf86drm.h" #include "xf86drm.h"

View File

@ -30,10 +30,6 @@
* Zack Rusin <zackr@vmware.com> * Zack Rusin <zackr@vmware.com>
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "util_hash.h" #include "util_hash.h"
#include <stdlib.h> #include <stdlib.h>

View File

@ -44,10 +44,6 @@
#ifndef UTIL_HASH_H #ifndef UTIL_HASH_H
#define UTIL_HASH_H #define UTIL_HASH_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdbool.h> #include <stdbool.h>
#include "libdrm_macros.h" #include "libdrm_macros.h"

View File

@ -38,10 +38,6 @@
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "util_hash_table.h" #include "util_hash_table.h"
#include "util_hash.h" #include "util_hash.h"

View File

@ -34,10 +34,6 @@
#ifndef U_HASH_TABLE_H_ #ifndef U_HASH_TABLE_H_
#define U_HASH_TABLE_H_ #define U_HASH_TABLE_H_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "libdrm_macros.h" #include "libdrm_macros.h"
/** /**

View File

@ -541,6 +541,8 @@ else
AC_DEFINE(HAVE_VISIBILITY, 0) AC_DEFINE(HAVE_VISIBILITY, 0)
fi fi
CFLAGS="$CFLAGS -include config.h"
AC_SUBST(WARN_CFLAGS) AC_SUBST(WARN_CFLAGS)
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile

View File

@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h" #include "etnaviv_priv.h"
#include "etnaviv_drmif.h" #include "etnaviv_drmif.h"

View File

@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h" #include "etnaviv_priv.h"
#include "etnaviv_drmif.h" #include "etnaviv_drmif.h"

View File

@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include "etnaviv_drmif.h" #include "etnaviv_drmif.h"

View File

@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/types.h> #include <linux/types.h>

View File

@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h" #include "etnaviv_priv.h"
#include "etnaviv_drmif.h" #include "etnaviv_drmif.h"

View File

@ -25,10 +25,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h" #include "etnaviv_priv.h"
static int etna_perfmon_query_signals(struct etna_perfmon *pm, struct etna_perfmon_domain *dom) static int etna_perfmon_query_signals(struct etna_perfmon *pm, struct etna_perfmon_domain *dom)

View File

@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h" #include "etnaviv_priv.h"
int etna_pipe_wait(struct etna_pipe *pipe, uint32_t timestamp, uint32_t ms) int etna_pipe_wait(struct etna_pipe *pipe, uint32_t timestamp, uint32_t ms)

View File

@ -24,10 +24,6 @@
* Inki Dae <inki.dae@samsung.com> * Inki Dae <inki.dae@samsung.com>
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -23,10 +23,6 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "freedreno_drmif.h" #include "freedreno_drmif.h"
#include "freedreno_priv.h" #include "freedreno_priv.h"

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "freedreno_drmif.h" #include "freedreno_drmif.h"
#include "freedreno_priv.h" #include "freedreno_priv.h"

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "freedreno_drmif.h" #include "freedreno_drmif.h"
#include "freedreno_priv.h" #include "freedreno_priv.h"

View File

@ -29,10 +29,6 @@
#ifndef FREEDRENO_PRIV_H_ #ifndef FREEDRENO_PRIV_H_
#define FREEDRENO_PRIV_H_ #define FREEDRENO_PRIV_H_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include "freedreno_drmif.h" #include "freedreno_drmif.h"

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "kgsl_priv.h" #include "kgsl_priv.h"
#include <linux/fb.h> #include <linux/fb.h>

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "kgsl_priv.h" #include "kgsl_priv.h"

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include "freedreno_ringbuffer.h" #include "freedreno_ringbuffer.h"

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "msm_priv.h" #include "msm_priv.h"
static int bo_allocate(struct msm_bo *msm_bo) static int bo_allocate(struct msm_bo *msm_bo)

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "msm_priv.h" #include "msm_priv.h"
static int query_param(struct fd_pipe *pipe, uint32_t param, static int query_param(struct fd_pipe *pipe, uint32_t param,

View File

@ -26,10 +26,6 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -25,10 +25,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>

View File

@ -34,10 +34,6 @@
* the bugs in the old texture manager. * the bugs in the old texture manager.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>

View File

@ -34,10 +34,6 @@
* Dave Airlie <airlied@linux.ie> * Dave Airlie <airlied@linux.ie>
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <xf86drm.h> #include <xf86drm.h>
#include <xf86atomic.h> #include <xf86atomic.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h> #include <assert.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -22,10 +22,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>

View File

@ -29,10 +29,6 @@
#ifndef MM_H #ifndef MM_H
#define MM_H #define MM_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "libdrm_macros.h" #include "libdrm_macros.h"
struct mem_block { struct mem_block {

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View File

@ -26,10 +26,6 @@
**************************************************************************/ **************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -26,10 +26,6 @@
**************************************************************************/ **************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -25,10 +25,6 @@
* SOFTWARE. * SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -26,10 +26,6 @@
**************************************************************************/ **************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -29,10 +29,6 @@
#ifndef INTERNAL_H_ #ifndef INTERNAL_H_
#define INTERNAL_H_ #define INTERNAL_H_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "libdrm_macros.h" #include "libdrm_macros.h"
#include "libkms.h" #include "libkms.h"

View File

@ -29,10 +29,6 @@
* going from fd to pci id via fstat and udev. * going from fd to pci id via fstat and udev.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -26,10 +26,6 @@
**************************************************************************/ **************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -26,10 +26,6 @@
**************************************************************************/ **************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -26,10 +26,6 @@
**************************************************************************/ **************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -280,7 +280,7 @@ config_file = configure_file(
configuration : config, configuration : config,
output : 'config.h', output : 'config.h',
) )
add_project_arguments('-DHAVE_CONFIG_H', language : 'c') add_project_arguments('-include', 'config.h', language : 'c')
inc_root = include_directories('.') inc_root = include_directories('.')
inc_drm = include_directories('include/drm') inc_drm = include_directories('include/drm')

View File

@ -22,10 +22,6 @@
* Authors: Ben Skeggs * Authors: Ben Skeggs
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>

View File

@ -22,10 +22,6 @@
* Authors: Ben Skeggs * Authors: Ben Skeggs
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>

View File

@ -22,10 +22,6 @@
* Authors: Ben Skeggs * Authors: Ben Skeggs
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>

View File

@ -22,10 +22,6 @@
* Authors: Ben Skeggs * Authors: Ben Skeggs
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>

View File

@ -26,10 +26,6 @@
* Rob Clark <rob@ti.com> * Rob Clark <rob@ti.com>
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/types.h> #include <linux/types.h>

View File

@ -29,9 +29,6 @@
* Dave Airlie * Dave Airlie
* Jérôme Glisse <glisse@freedesktop.org> * Jérôme Glisse <glisse@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <libdrm_macros.h> #include <libdrm_macros.h>
#include <radeon_bo.h> #include <radeon_bo.h>
#include <radeon_bo_int.h> #include <radeon_bo_int.h>

View File

@ -29,9 +29,6 @@
* Dave Airlie * Dave Airlie
* Jérôme Glisse <glisse@freedesktop.org> * Jérôme Glisse <glisse@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,6 +1,3 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "libdrm_macros.h" #include "libdrm_macros.h"
#include <stdio.h> #include <stdio.h>
#include "radeon_cs.h" #include "radeon_cs.h"

View File

@ -29,9 +29,6 @@
* Nicolai Haehnle <prefect_@gmx.net> * Nicolai Haehnle <prefect_@gmx.net>
* Jérôme Glisse <glisse@freedesktop.org> * Jérôme Glisse <glisse@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -25,9 +25,6 @@
*/ */
/* /*
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -26,9 +26,6 @@
* Authors: * Authors:
* Jérôme Glisse <jglisse@redhat.com> * Jérôme Glisse <jglisse@redhat.com>
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdbool.h> #include <stdbool.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>

View File

@ -22,10 +22,6 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include "CUnit/Basic.h" #include "CUnit/Basic.h"

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include "CUnit/Basic.h" #include "CUnit/Basic.h"

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -21,10 +21,6 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "CUnit/Basic.h" #include "CUnit/Basic.h"
#include "amdgpu_test.h" #include "amdgpu_test.h"

View File

@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com> * Christian Gmeiner <christian.gmeiner@gmail.com>
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#undef NDEBUG #undef NDEBUG
#include <assert.h> #include <assert.h>

View File

@ -23,10 +23,6 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <signal.h> #include <signal.h>

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <fcntl.h> #include <fcntl.h>
#include <getopt.h> #include <getopt.h>
#include <stdbool.h> #include <stdbool.h>

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "libkms-test.h" #include "libkms-test.h"
struct kms_crtc *kms_crtc_create(struct kms_device *device, uint32_t id) struct kms_crtc *kms_crtc_create(struct kms_device *device, uint32_t id)

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

View File

@ -21,10 +21,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

View File

@ -24,10 +24,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@ -22,10 +22,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@ -38,10 +38,6 @@
* the mode has been programmed, along with possible test patterns. * the mode has been programmed, along with possible test patterns.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <stdbool.h> #include <stdbool.h>

View File

@ -20,10 +20,6 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <dlfcn.h> #include <dlfcn.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -20,10 +20,6 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>

View File

@ -23,10 +23,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -37,10 +37,6 @@
* the mode has been programmed, along with possible test patterns. * the mode has been programmed, along with possible test patterns.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>

View File

@ -23,10 +23,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -24,10 +24,6 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -34,10 +34,6 @@
#ifndef LIBDRM_ATOMICS_H #ifndef LIBDRM_ATOMICS_H
#define LIBDRM_ATOMICS_H #define LIBDRM_ATOMICS_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#if HAVE_LIBDRM_ATOMIC_PRIMITIVES #if HAVE_LIBDRM_ATOMIC_PRIMITIVES
#define HAS_ATOMIC_OPS 1 #define HAS_ATOMIC_OPS 1

View File

@ -31,9 +31,6 @@
* DEALINGS IN THE SOFTWARE. * DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdbool.h> #include <stdbool.h>

View File

@ -38,10 +38,6 @@
* platforms find which headers to include to get uint32_t * platforms find which headers to include to get uint32_t
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <limits.h> #include <limits.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>