Use #ifdef instead of #if for features to make Meson easier.

We mostly use #ifdef throughout the tree, and this lets the generated
config.h files just be #define TOKEN instead of #define TOKEN 1.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Eric Anholt 2017-04-25 16:03:00 -07:00 • committed by Adam Jackson
commit c7be7a688a
10 changed files with 29 additions and 29 deletions

View file

@ -58,7 +58,7 @@ cat > sdksyms.c << EOF
#include "shmint.h"
#endif
#include "syncsdk.h"
#if XINERAMA
#ifdef XINERAMA
# include "panoramiXsrv.h"
# include "panoramiX.h"
#endif
@ -97,7 +97,7 @@ cat > sdksyms.c << EOF
/* hw/xfree86/dri2/Makefile.am -- module */
#if DRI2
#ifdef DRI2
# include "dri2.h"
#endif
@ -131,7 +131,7 @@ cat > sdksyms.c << EOF
#include "xf86str.h"
#include "xf86Xinput.h"
#include "xisb.h"
#if XV
#ifdef XV
# include "xf86xv.h"
# include "xf86xvmc.h"
# include "xf86xvpriv.h"
@ -189,7 +189,7 @@ cat > sdksyms.c << EOF
/* hw/xfree86/dri/Makefile.am -- module */
#if XF86DRI
#ifdef XF86DRI
# include "dri.h"
# include "sarea.h"
# include "dristruct.h"