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:
Sam Lantinga
2022-11-26 20:43:38 -08:00
parent 9a64aa6f95
commit 0a48abc860
661 changed files with 1623 additions and 2833 deletions

View File

@@ -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

View File

@@ -29,7 +29,7 @@
*/
/* General platform specific identifiers */
#include "SDL_platform.h"
#include <SDL3/SDL_platform.h>
/* C language features */
#cmakedefine const @HAVE_CONST@

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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;

View File

@@ -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.

View File

@@ -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. */

View File

@@ -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.

View File

@@ -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. */