Commit 0926f0af authored by Eric Engestrom's avatar Eric Engestrom 💤
Browse files

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's avatarEric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.velikov@collabora.com>
parent 431f1a14
......@@ -22,10 +22,6 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
......
......@@ -22,10 +22,6 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
......
......@@ -21,10 +21,6 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
......
......@@ -28,10 +28,6 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
......
......@@ -22,10 +22,6 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h>
#include <string.h>
......
......@@ -25,10 +25,6 @@
#ifndef _AMDGPU_INTERNAL_H_
#define _AMDGPU_INTERNAL_H_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <pthread.h>
......
......@@ -21,10 +21,6 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
#include <errno.h>
......
......@@ -21,10 +21,6 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "amdgpu.h"
#include "amdgpu_drm.h"
#include "xf86drm.h"
......
......@@ -30,10 +30,6 @@
* Zack Rusin <zackr@vmware.com>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "util_hash.h"
#include <stdlib.h>
......
......@@ -44,10 +44,6 @@
#ifndef UTIL_HASH_H
#define UTIL_HASH_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdbool.h>
#include "libdrm_macros.h"
......
......@@ -38,10 +38,6 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "util_hash_table.h"
#include "util_hash.h"
......
......@@ -34,10 +34,6 @@
#ifndef U_HASH_TABLE_H_
#define U_HASH_TABLE_H_
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "libdrm_macros.h"
/**
......
......@@ -541,6 +541,8 @@ else
AC_DEFINE(HAVE_VISIBILITY, 0)
fi
CFLAGS="$CFLAGS -include config.h"
AC_SUBST(WARN_CFLAGS)
AC_CONFIG_FILES([
Makefile
......
......@@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h"
#include "etnaviv_drmif.h"
......
......@@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h"
#include "etnaviv_drmif.h"
......
......@@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h>
#include "etnaviv_drmif.h"
......
......@@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <linux/stddef.h>
#include <linux/types.h>
......
......@@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h"
#include "etnaviv_drmif.h"
......
......@@ -25,10 +25,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h"
static int etna_perfmon_query_signals(struct etna_perfmon *pm, struct etna_perfmon_domain *dom)
......
......@@ -24,10 +24,6 @@
* Christian Gmeiner <christian.gmeiner@gmail.com>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "etnaviv_priv.h"
int etna_pipe_wait(struct etna_pipe *pipe, uint32_t timestamp, uint32_t ms)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment