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 <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2021-03-03 14:45:55 +02:00
parent e88de3ef37
commit a4ecf96316
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@
#include "wayland-util.h"
#include "pixel-formats.h"
#if ENABLE_EGL
#ifdef ENABLE_EGL
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>