mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 00:18:28 +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:
@@ -22,7 +22,7 @@
|
||||
#ifndef SDL_build_config_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/**
|
||||
* \file SDL_build_config.h
|
||||
|
@@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
/* General platform specific identifiers */
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/* C language features */
|
||||
#cmakedefine const @HAVE_CONST@
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_android_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/**
|
||||
* \file SDL_build_config_android.h
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#ifndef _SDL_build_config_emscripten_h_
|
||||
#define _SDL_build_config_emscripten_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/**
|
||||
* \file SDL_build_config_emscripten.h
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_ios_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
#define HAVE_GCC_ATOMICS 1
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_macos_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */
|
||||
#include <AvailabilityMacros.h>
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_minimal_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/**
|
||||
* \file SDL_build_config_minimal.h
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_ngage_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
typedef signed char int8_t;
|
||||
typedef unsigned char uint8_t;
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_windows_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/* winsdkver.h defines _WIN32_MAXVER for SDK version detection. It is present since at least the Windows 7 SDK,
|
||||
* but out of caution we'll only use it if the compiler supports __has_include() to confirm its presence.
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_wingdk_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/* Windows GDK does not need Windows SDK version checks because it requires
|
||||
* a recent version of the Windows 10 SDK. */
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_winrt_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/* Make sure the Windows SDK's NTDDI_VERSION macro gets defined. This is used
|
||||
by SDL to determine which version of the Windows SDK is being used.
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#define SDL_build_config_wingdk_h_
|
||||
#define SDL_build_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
#include <SDL3/SDL_platform.h>
|
||||
|
||||
/* Windows GDK does not need Windows SDK version checks because it requires
|
||||
* a recent version of the Windows 10 SDK. */
|
||||
|
Reference in New Issue
Block a user