egl: remove suprous header eglcompiler.h
The header is used only to provide STATIC_ASSERT. The latter is already available in utils/macros.h so use that instead and kill of the header. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:

committed by
Emil Velikov

parent
8d6f92313d
commit
239e7ee91b
@@ -3,7 +3,6 @@ LIBEGL_C_FILES := \
|
|||||||
main/eglapi.h \
|
main/eglapi.h \
|
||||||
main/eglarray.c \
|
main/eglarray.c \
|
||||||
main/eglarray.h \
|
main/eglarray.h \
|
||||||
main/eglcompiler.h \
|
|
||||||
main/eglconfig.c \
|
main/eglconfig.c \
|
||||||
main/eglconfig.h \
|
main/eglconfig.h \
|
||||||
main/eglcontext.c \
|
main/eglcontext.c \
|
||||||
|
@@ -40,6 +40,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include "util/macros.h"
|
||||||
|
|
||||||
#include "egl_dri2.h"
|
#include "egl_dri2.h"
|
||||||
#include "egl_dri2_fallbacks.h"
|
#include "egl_dri2_fallbacks.h"
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
#include <xcb/present.h>
|
#include <xcb/present.h>
|
||||||
|
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
|
#include "util/macros.h"
|
||||||
|
|
||||||
#include "egl_dri2.h"
|
#include "egl_dri2.h"
|
||||||
#include "egl_dri2_fallbacks.h"
|
#include "egl_dri2_fallbacks.h"
|
||||||
|
@@ -89,7 +89,7 @@
|
|||||||
#include "c99_compat.h"
|
#include "c99_compat.h"
|
||||||
#include "c11/threads.h"
|
#include "c11/threads.h"
|
||||||
#include "GL/mesa_glinterop.h"
|
#include "GL/mesa_glinterop.h"
|
||||||
#include "eglcompiler.h"
|
#include "util/macros.h"
|
||||||
|
|
||||||
#include "eglglobals.h"
|
#include "eglglobals.h"
|
||||||
#include "eglcontext.h"
|
#include "eglcontext.h"
|
||||||
|
@@ -1,46 +0,0 @@
|
|||||||
/**************************************************************************
|
|
||||||
*
|
|
||||||
* Copyright 2009-2010 Chia-I Wu <olvaffe@gmail.com>
|
|
||||||
* Copyright 2010 LunarG, Inc.
|
|
||||||
* All Rights Reserved.
|
|
||||||
*
|
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
* copy of this software and associated documentation files (the
|
|
||||||
* "Software"), to deal in the Software without restriction, including
|
|
||||||
* without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
* the following conditions:
|
|
||||||
*
|
|
||||||
* The above copyright notice and this permission notice (including the
|
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
|
||||||
* of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
* DEALINGS IN THE SOFTWARE.
|
|
||||||
*
|
|
||||||
**************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef EGLCOMPILER_INCLUDED
|
|
||||||
#define EGLCOMPILER_INCLUDED
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define STATIC_ASSERT(COND) \
|
|
||||||
do { \
|
|
||||||
(void) sizeof(char [1 - 2*!(COND)]); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* EGLCOMPILER_INCLUDED */
|
|
@@ -37,8 +37,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "c99_compat.h"
|
#include "c99_compat.h"
|
||||||
|
#include "util/macros.h"
|
||||||
|
|
||||||
#include "eglcompiler.h"
|
|
||||||
#include "eglconfig.h"
|
#include "eglconfig.h"
|
||||||
#include "egldisplay.h"
|
#include "egldisplay.h"
|
||||||
#include "eglcurrent.h"
|
#include "eglcurrent.h"
|
||||||
|
@@ -34,9 +34,6 @@
|
|||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
|
||||||
#include "eglcompiler.h"
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user