Skip to content

Commit

Permalink
Added missing SDL_sysfilesystem.h includes
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 17, 2024
1 parent 2eda7b2 commit b3df46e
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/filesystem/android/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <unistd.h>

char *SDL_SYS_GetBasePath(void)
Expand Down
2 changes: 2 additions & 0 deletions src/filesystem/cocoa/SDL_sysfilesystem.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <Foundation/Foundation.h>
#include <sys/stat.h>
#include <sys/types.h>
Expand Down
2 changes: 2 additions & 0 deletions src/filesystem/dummy/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

char *SDL_SYS_GetBasePath(void)
{
SDL_Unsupported();
Expand Down
3 changes: 3 additions & 0 deletions src/filesystem/dummy/SDL_sysfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

#if defined(SDL_FSOPS_DUMMY)

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

int SDL_SYS_EnumerateDirectory(const char *path, const char *dirname, SDL_EnumerateDirectoryCallback cb, void *userdata)
Expand Down
3 changes: 3 additions & 0 deletions src/filesystem/emscripten/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <errno.h>
#include <sys/stat.h>

Expand Down
3 changes: 2 additions & 1 deletion src/filesystem/gdk/SDL_sysfilesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
*/
#include "SDL_internal.h"


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include "../../core/windows/SDL_windows.h"
#include <SDL3/SDL_hints.h>
#include <SDL3/SDL_system.h>
Expand Down
2 changes: 2 additions & 0 deletions src/filesystem/n3ds/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <3ds.h>
#include <dirent.h>
#include <errno.h>
Expand Down
7 changes: 5 additions & 2 deletions src/filesystem/posix/SDL_sysfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@

#if defined(SDL_FSOPS_POSIX)

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <dirent.h>
#include <sys/stat.h>

#include "../SDL_sysfilesystem.h"

int SDL_SYS_EnumerateDirectory(const char *path, const char *dirname, SDL_EnumerateDirectoryCallback cb, void *userdata)
{
int retval = 1;
Expand Down
8 changes: 5 additions & 3 deletions src/filesystem/ps2/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
*/
#include "SDL_internal.h"

#include <sys/stat.h>
#include <unistd.h>

#ifdef SDL_FILESYSTEM_PS2

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <sys/stat.h>
#include <unistd.h>

char *SDL_SYS_GetBasePath(void)
{
char *retval = NULL;
Expand Down
8 changes: 5 additions & 3 deletions src/filesystem/psp/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
*/
#include "SDL_internal.h"

#include <sys/stat.h>
#include <unistd.h>

#ifdef SDL_FILESYSTEM_PSP

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <sys/stat.h>
#include <unistd.h>

char *SDL_SYS_GetBasePath(void)
{
char *retval = NULL;
Expand Down
2 changes: 2 additions & 0 deletions src/filesystem/riscos/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <kernel.h>
#include <swis.h>
#include <unixlib/local.h>
Expand Down
2 changes: 2 additions & 0 deletions src/filesystem/unix/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
Expand Down
2 changes: 2 additions & 0 deletions src/filesystem/vita/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include <errno.h>
#include <stdio.h>
#include <unistd.h>
Expand Down
2 changes: 2 additions & 0 deletions src/filesystem/windows/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../SDL_sysfilesystem.h"

#include "../../core/windows/SDL_windows.h"
#include <shlobj.h>
#include <initguid.h>
Expand Down
3 changes: 3 additions & 0 deletions src/filesystem/windows/SDL_sysfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

#if defined(SDL_FSOPS_WINDOWS)

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include "../../core/windows/SDL_windows.h"
#include "../SDL_sysfilesystem.h"

Expand Down
3 changes: 3 additions & 0 deletions src/filesystem/winrt/SDL_sysfilesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

#ifdef SDL_PLATFORM_WINRT

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

extern "C" {
#include "../../core/windows/SDL_windows.h"
#include "../SDL_sysfilesystem.h"
Expand Down

0 comments on commit b3df46e

Please sign in to comment.