Skip to content

Commit

Permalink
Include <SDL.h>
Browse files Browse the repository at this point in the history
In theory this is the way to go according to https://nullprogram.com/blog/2023/01/08/

Let's see how many things break and how many I can fix…
  • Loading branch information
sergiou87 committed Aug 25, 2024
1 parent 53e45e9 commit 9f6a926
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "logging.h"

#if HAVE_SDL2
#include <SDL2/SDL.h>
#include <SDL.h>
#endif

#if (defined(__vita__) || defined(__PSL1GHT__)) && DEBUG
Expand Down
2 changes: 1 addition & 1 deletion src/nx/nxVirtualKeyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "../virtualKeyboard.h"

#include <SDL2/SDL.h>
#include <SDL.h>
#include <switch.h>

#include "../logging.h"
Expand Down
2 changes: 1 addition & 1 deletion src/ps3/virtualKeyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "../virtualKeyboard.h"

#include <SDL2/SDL.h>
#include <SDL.h>

#include <sys/memory.h>
#include <sysutil/osk.h>
Expand Down
2 changes: 1 addition & 1 deletion src/psp2/psp2VirtualKeyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "../virtualKeyboard.h"

#include <SDL2/SDL.h>
#include <SDL.h>

#include <psp2/apputil.h>
#include <psp2/display.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sdl2/controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "../controller.h"

#include <SDL2/SDL.h>
#include <SDL.h>
#include <stdlib.h>

static int sCurrentGameControllerIndex = -1;
Expand Down
2 changes: 1 addition & 1 deletion src/sdl2/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "../keyboard.h"

#include <SDL2/SDL.h>
#include <SDL.h>

#include "../system.h"

Expand Down
2 changes: 1 addition & 1 deletion src/sdl2/touchscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "../touchscreen.h"

#include <SDL2/SDL.h>
#include <SDL.h>

uint8_t readTouchScreen(float *x, float *y)
{
Expand Down
2 changes: 1 addition & 1 deletion src/sdl2/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "../video.h"

#include <math.h>
#include <SDL2/SDL.h>
#include <SDL.h>
#include <stdlib.h>

#include "../logging.h"
Expand Down
2 changes: 1 addition & 1 deletion src/sdl_common/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <math.h>

#if HAVE_SDL2
#include <SDL2/SDL.h>
#include <SDL.h>
#if TARGET_OS_MAC
#include <SDL2_mixer/SDL_mixer.h>
#else
Expand Down
2 changes: 1 addition & 1 deletion src/sdl_common/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <errno.h>
#if HAVE_SDL2
#include <SDL2/SDL.h>
#include <SDL.h>
#elif HAVE_SDL
#include <SDL/SDL.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <string.h>

#if HAVE_SDL2
#include <SDL2/SDL.h>
#include <SDL.h>
#elif HAVE_SDL
#include <SDL/SDL.h>
#endif
Expand Down

0 comments on commit 9f6a926

Please sign in to comment.