mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 15:39:10 +00:00
Switch header convention from #include "SDL.h"
to #include <SDL3/SDLh>
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
This commit is contained in:
parent
9a64aa6f95
commit
0a48abc860
661 changed files with 1623 additions and 2833 deletions
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "SDL_test_common.h"
|
||||
#include <SDL3/SDL_test_common.h>
|
||||
|
||||
#if defined(__ANDROID__) && defined(__ARM_EABI__) && !defined(__ARM_ARCH_7A__)
|
||||
|
||||
|
@ -30,7 +30,7 @@ int main(int argc, char *argv[])
|
|||
/* SDL includes a copy for building on systems without the Vulkan SDK */
|
||||
#include "../src/video/khronos/vulkan/vulkan.h"
|
||||
#endif
|
||||
#include "SDL_vulkan.h"
|
||||
#include <SDL3/SDL_vulkan.h>
|
||||
|
||||
#ifndef UINT64_MAX /* VS2008 */
|
||||
#define UINT64_MAX 18446744073709551615
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue