diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-11-02 18:56:39 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-11-09 14:03:39 +0000 |
commit | aa60c7b1c1eb86b457b3717fa2edaec77281eccf (patch) | |
tree | 887fa3dde32446627bc6b8047422a71b6e957d8e /src | |
parent | b8f99c6b2f9065167cd1db7090a9d5ec7ec5f67b (diff) | |
download | external_mesa3d-aa60c7b1c1eb86b457b3717fa2edaec77281eccf.zip external_mesa3d-aa60c7b1c1eb86b457b3717fa2edaec77281eccf.tar.gz external_mesa3d-aa60c7b1c1eb86b457b3717fa2edaec77281eccf.tar.bz2 |
egl: use util/macros.h
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>
(cherry picked from commit bf51b45313c7cc5ca792401f0cc29574aa9122cf)
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.h | 2 | ||||
-rw-r--r-- | src/egl/main/egldefines.h | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 85d4b85..0020a5b 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 13a7563..d0502f3 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 |