mirror of https://github.com/ppy/SDL3-CS.git
49 lines
1.4 KiB
Diff
49 lines
1.4 KiB
Diff
diff --git a/include/SDL3/SDL.h b/include/SDL3/SDL.h
|
|
index 4e18f6382..d737c7a9a 100644
|
|
--- a/include/SDL3/SDL.h
|
|
+++ b/include/SDL3/SDL.h
|
|
@@ -28,6 +28,8 @@
|
|
#ifndef SDL_h_
|
|
#define SDL_h_
|
|
|
|
+#error Don't build with enum type changes
|
|
+
|
|
#include <SDL3/SDL_stdinc.h>
|
|
#include <SDL3/SDL_assert.h>
|
|
#include <SDL3/SDL_atomic.h>
|
|
diff --git a/include/SDL3/SDL_log.h b/include/SDL3/SDL_log.h
|
|
index 3c0e80f38..44f58add3 100644
|
|
--- a/include/SDL3/SDL_log.h
|
|
+++ b/include/SDL3/SDL_log.h
|
|
@@ -407,7 +407,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_LogMessageV(int category,
|
|
*
|
|
* \since This datatype is available since SDL 3.0.0.
|
|
*/
|
|
-typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
|
|
+typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, SDL_LogCategory category, SDL_LogPriority priority, const char *message);
|
|
|
|
/**
|
|
* Get the current log output function.
|
|
diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h
|
|
index 5539f2a81..3155f3f31 100644
|
|
--- a/include/SDL3/SDL_stdinc.h
|
|
+++ b/include/SDL3/SDL_stdinc.h
|
|
@@ -194,7 +194,7 @@ void *alloca(size_t);
|
|
*
|
|
* \sa SDL_bool
|
|
*/
|
|
-#define SDL_FALSE false
|
|
+#define SDL_FALSE (SDL_bool)0
|
|
|
|
/**
|
|
* A boolean true.
|
|
@@ -203,7 +203,7 @@ void *alloca(size_t);
|
|
*
|
|
* \sa SDL_bool
|
|
*/
|
|
-#define SDL_TRUE true
|
|
+#define SDL_TRUE (SDL_bool)1
|
|
|
|
/**
|
|
* A boolean type: true or false.
|