mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-27 03:50:25 +00:00
0a48abc860
I ran this script in the include directory: ```sh sed -i '' -e 's,#include "\(SDL.*\)",#include <SDL3/\1>,' *.h ``` I ran this script in the src directory: ```sh for i in ../include/SDL3/SDL*.h do hdr=$(basename $i) if [ x"$(echo $hdr | egrep 'SDL_main|SDL_name|SDL_test|SDL_syswm|SDL_opengl|SDL_egl|SDL_vulkan')" != x ]; then find . -type f -exec sed -i '' -e 's,#include "\('$hdr'\)",#include <SDL3/\1>,' {} \; else find . -type f -exec sed -i '' -e '/#include "'$hdr'"/d' {} \; fi done ``` Fixes https://github.com/libsdl-org/SDL/issues/6575
28 lines
646 B
C
28 lines
646 B
C
#ifndef __gl2platform_h_
|
|
#define __gl2platform_h_
|
|
|
|
/*
|
|
** Copyright 2017-2020 The Khronos Group Inc.
|
|
** SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/* Platform-specific types and definitions for OpenGL ES 2.X gl2.h
|
|
*
|
|
* Adopters may modify 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/khrplatform.h>*/
|
|
|
|
#ifndef GL_APICALL
|
|
#define GL_APICALL KHRONOS_APICALL
|
|
#endif
|
|
|
|
#ifndef GL_APIENTRY
|
|
#define GL_APIENTRY KHRONOS_APIENTRY
|
|
#endif
|
|
|
|
#endif /* __gl2platform_h_ */
|