Merge pull request #26278 from basilgello/taglib2-fix-piers
[xbmc.git] / xbmc / system_egl.h
blob4a8860b123d3fd9034c1103a3c19b1cedb375ddb
1 /*
2 * Copyright (C) 2005-2020 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #if defined(TARGET_LINUX) || defined(TARGET_FREEBSD)
13 #if defined(WL_EGL_PLATFORM)
14 #undef WL_EGL_PLATFORM
15 #define KODI_WL_EGL_PLATFORM
16 #endif
18 #if defined(__GBM__)
19 #undef __GBM__
20 #define KODI__GBM__
21 #endif
23 #if defined(USE_X11)
24 #undef USE_X11
25 #define KODI_USE_X11
26 #endif
28 #define EGL_NO_X11
29 #define MESA_EGL_NO_X11_HEADERS
30 #endif
32 #include <EGL/egl.h>
34 #if defined(TARGET_LINUX) || defined(TARGET_FREEBSD)
36 #if defined(KODI_WL_EGL_PLATFORM)
37 #undef KODI_WL_EGL_PLATFORM
38 #define WL_EGL_PLATFORM
39 #endif
41 #if defined(KODI__GBM__)
42 #undef KODI__GBM__
43 #define __GBM__
44 #endif
46 #if defined(KODI_USE_X11)
47 #undef KODI_USE_X11
48 #define USE_X11
49 #endif
51 #endif