mirror of
https://github.com/tsukumijima/libmali-rockchip.git
synced 2026-01-24 00:10:50 +01:00
The mesa upstream decided to install khrplatform.h within GL(dev), which
would conflit with ours:
dpkg: error processing archive /var/cache/apt/archives/mesa-common-dev_18.3.6-2+deb10u1_arm64.deb (--unpack):
trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package libmali-rk-dev:arm64 1.7-1
Let's rename it to avoid that.
Done by these commands:
mv include/KHR/{,mali_}khrplatform.h
ag khrplatform.h -l|xargs sed -i "s/\<khrplatform.h/mali_khrplatform.h/g"
Change-Id: I1aec209c60481332ffecd033ed9433e91cc5fb97
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
#ifndef __gl2platform_h_
|
|
#define __gl2platform_h_
|
|
|
|
/*
|
|
** Copyright (c) 2017 The Khronos Group Inc.
|
|
**
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
** you may not use this file except in compliance with the License.
|
|
** You may obtain a copy of the License at
|
|
**
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
**
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
** See the License for the specific language governing permissions and
|
|
** limitations under the License.
|
|
*/
|
|
|
|
/* Platform-specific types and definitions for OpenGL ES 2.X gl2.h
|
|
*
|
|
* Adopters may modify mali_khrplatform.h and this file to suit their platform.
|
|
* Please contribute modifications back to Khronos as pull requests on the
|
|
* public github repository:
|
|
* https://github.com/KhronosGroup/OpenGL-Registry
|
|
*/
|
|
|
|
#include <KHR/mali_khrplatform.h>
|
|
|
|
#ifndef GL_APICALL
|
|
#define GL_APICALL KHRONOS_APICALL
|
|
#endif
|
|
|
|
#ifndef GL_APIENTRY
|
|
#define GL_APIENTRY KHRONOS_APIENTRY
|
|
#endif
|
|
|
|
#endif /* __gl2platform_h_ */
|