Do not include SDL.h from common.h

This commit is contained in:
kichikuou
2025-06-06 15:04:35 +09:00
parent 7f527da74f
commit bce04adf82
6 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -9,8 +9,8 @@
#define SYSTEM3_VERSION "1.6.1"
#include <SDL.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#ifdef __EMSCRIPTEN__
@@ -50,6 +50,7 @@ enum CustomEvent {
};
// resource.cpp
struct SDL_RWops;
SDL_RWops* open_resource(const char* name, const char* type);
SDL_RWops* open_file(const char* name);
+1
View File
@@ -4,6 +4,7 @@
*/
#include <memory>
#include <SDL.h>
#include <emscripten.h>
#include "mako.h"
#include "fm/mako_ymfm.h"
+1
View File
@@ -4,6 +4,7 @@
#undef min
#undef max
#endif
#include <SDL.h>
#include "common.h"
SDL_RWops* open_resource(const char* name, const char* type) {
+1
View File
@@ -7,6 +7,7 @@
#include "dri.h"
#include <memory>
#include <string.h>
#include <SDL.h>
#include "game_id.h"
#include "fileio.h"
+1
View File
@@ -1,4 +1,5 @@
#include <string.h>
#include <SDL.h>
#include "game_id.h"
#include "fileio.h"
#include "config.h"
+1
View File
@@ -11,6 +11,7 @@
#include <string>
#include <vector>
#include <stdio.h>
#include <SDL.h>
#include "common.h"
#include "config.h"
#include "dri.h"