[Mesa-dev] [PATCH] egl: define NULL in egldevice.h
Gurchetan Singh
gurchetansingh at chromium.org
Wed Nov 28 03:37:29 UTC 2018
Otherwise, I get this error:
main/egldevice.h:54:13: error: ‘NULL’ undeclared (first use in this function)
dev = NULL;
^~~~
with this config:
./autogen.sh --enable-gles1 --enable-gles2 --with-platforms='surfaceless' --disable-glx
--with-dri-drivers="i965" --with-gallium-drivers="" --enable-gbm
v2: remove change id
---
src/egl/main/egldevice.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/egl/main/egldevice.h b/src/egl/main/egldevice.h
index ddcdcd17f5..f161942d26 100644
--- a/src/egl/main/egldevice.h
+++ b/src/egl/main/egldevice.h
@@ -33,6 +33,9 @@
#include <stdbool.h>
#include "egltypedefs.h"
+#ifndef NULL
+#define NULL 0
+#endif
#ifdef __cplusplus
extern "C" {
--
2.18.1
More information about the mesa-dev
mailing list