Do not include SDL_iostream.h in NativeFile.h.

This commit is contained in:
Miku AuahDark
2025-01-04 12:08:42 +08:00
parent 89f75f51fb
commit 8beb7f0e4b
3 changed files with 9 additions and 5 deletions
+5 -3
View File
@@ -482,9 +482,11 @@ add_library(love_filesystem_physfs STATIC
src/modules/filesystem/physfs/PhysfsIo.h src/modules/filesystem/physfs/PhysfsIo.h
src/modules/filesystem/physfs/PhysfsIo.cpp src/modules/filesystem/physfs/PhysfsIo.cpp
) )
target_link_libraries(love_filesystem_physfs PUBLIC if(ANDROID)
lovedep::SDL target_link_libraries(love_filesystem_physfs PUBLIC
) lovedep::SDL
)
endif()
add_library(love_filesystem INTERFACE) add_library(love_filesystem INTERFACE)
target_link_libraries(love_filesystem INTERFACE target_link_libraries(love_filesystem INTERFACE
+3
View File
@@ -36,6 +36,9 @@
#include <unistd.h> // POSIX. #include <unistd.h> // POSIX.
#endif #endif
// SDL
#include <SDL3/SDL_iostream.h>
namespace love namespace love
{ {
namespace filesystem namespace filesystem
+1 -2
View File
@@ -25,8 +25,7 @@
// C // C
#include <cstdio> #include <cstdio>
// SDL typedef struct SDL_IOStream SDL_IOStream;
#include <SDL3/SDL_iostream.h>
namespace love namespace love
{ {