mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-12-13 05:33:27 +08: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
18 lines
435 B
C
18 lines
435 B
C
/*
|
|
Copyright 1997-2022 Sam Lantinga
|
|
Copyright 2022 Collabora Ltd.
|
|
SPDX-License-Identifier: Zlib
|
|
*/
|
|
|
|
#ifndef TESTUTILS_H
|
|
#define TESTUTILS_H
|
|
|
|
#include <SDL3/SDL.h>
|
|
|
|
SDL_Texture *LoadTexture(SDL_Renderer *renderer, const char *file, SDL_bool transparent,
|
|
int *width_out, int *height_out);
|
|
char *GetNearbyFilename(const char *file);
|
|
char *GetResourceFilename(const char *user_specified, const char *def);
|
|
|
|
#endif
|