From a4ecf96316340172ec2e41b3b06bbc013cf8527c Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 3 Mar 2021 14:45:55 +0200 Subject: [PATCH] libweston: fix #ifdef ENABLE_EGL Everywhere else uses #ifdef, this used just #if. When the next commit adds -Wundef to the compiler options, this #if here will start failing as ENABLE_EGL is undefined. It would be much better to use Meson's set10() for ENABLE_EGL and change all #ifdef into #if, but I opted for the smaller change for now. Signed-off-by: Pekka Paalanen --- libweston/pixel-formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c index 1233d7b3..22726c49 100644 --- a/libweston/pixel-formats.c +++ b/libweston/pixel-formats.c @@ -38,7 +38,7 @@ #include "wayland-util.h" #include "pixel-formats.h" -#if ENABLE_EGL +#ifdef ENABLE_EGL #include #include #include