From: Marek Olšák Date: Wed, 2 Nov 2016 17:56:39 +0000 (+0100) Subject: egl: use util/macros.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf51b45313c7cc5ca792401f0cc29574aa9122cf;p=mesa.git egl: use util/macros.h I need the definition of PUBLIC. Cc: 12.0 13.0 Acked-by: Alex Deucher Reviewed-by: Nicolai Hähnle Reviewed-by: Emil Velikov --- diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 85d4b85eae2..0020a5b984c 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -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 diff --git a/src/egl/main/egldefines.h b/src/egl/main/egldefines.h index 13a7563ce04..d0502f33091 100644 --- a/src/egl/main/egldefines.h +++ b/src/egl/main/egldefines.h @@ -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