egl: use util/macros.h
authorMarek Olšák <marek.olsak@amd.com>
Wed, 2 Nov 2016 17:56:39 +0000 (18:56 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 4 Nov 2016 10:30:47 +0000 (11:30 +0100)
I need the definition of PUBLIC.

Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.h
src/egl/main/egldefines.h

index 85d4b85eae27331d75a9265bad393632fa46ec28..0020a5b984c6e51d8638c98b3f6b336ddaff54ee 100644 (file)
@@ -80,8 +80,6 @@
 #include "eglimage.h"
 #include "eglsync.h"
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
-
 struct wl_buffer;
 
 struct dri2_egl_driver
index 13a7563ce046733d5c50866d6103fc537ca111e2..d0502f33091a9ecb06bd12d9291b0e9dca1e7f49 100644 (file)
@@ -34,6 +34,8 @@
 #ifndef EGLDEFINES_INCLUDED
 #define EGLDEFINES_INCLUDED
 
+#include "util/macros.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -48,9 +50,6 @@ extern "C" {
 
 #define _EGL_VENDOR_STRING "Mesa Project"
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
-#define MIN2(A, B)  (((A) < (B)) ? (A) : (B))
-
 #ifdef __cplusplus
 }
 #endif