mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-29 07:59:11 +00:00
Fix warnings shown when making SDL_bool a typedef of bool
This commit is contained in:
parent
03ace96e5b
commit
46d9066a69
5 changed files with 8 additions and 8 deletions
|
@ -792,7 +792,7 @@ SDL_DYNAPI_PROC(int,SDL_SetStringProperty,(SDL_PropertiesID a, const char *b, co
|
||||||
SDL_DYNAPI_PROC(int,SDL_SetSurfaceAlphaMod,(SDL_Surface *a, Uint8 b),(a,b),return)
|
SDL_DYNAPI_PROC(int,SDL_SetSurfaceAlphaMod,(SDL_Surface *a, Uint8 b),(a,b),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_SetSurfaceBlendMode,(SDL_Surface *a, SDL_BlendMode b),(a,b),return)
|
SDL_DYNAPI_PROC(int,SDL_SetSurfaceBlendMode,(SDL_Surface *a, SDL_BlendMode b),(a,b),return)
|
||||||
SDL_DYNAPI_PROC(SDL_bool,SDL_SetSurfaceClipRect,(SDL_Surface *a, const SDL_Rect *b),(a,b),return)
|
SDL_DYNAPI_PROC(SDL_bool,SDL_SetSurfaceClipRect,(SDL_Surface *a, const SDL_Rect *b),(a,b),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_SetSurfaceColorKey,(SDL_Surface *a, int b, Uint32 c),(a,b,c),return)
|
SDL_DYNAPI_PROC(int,SDL_SetSurfaceColorKey,(SDL_Surface *a, SDL_bool b, Uint32 c),(a,b,c),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_SetSurfaceColorMod,(SDL_Surface *a, Uint8 b, Uint8 c, Uint8 d),(a,b,c,d),return)
|
SDL_DYNAPI_PROC(int,SDL_SetSurfaceColorMod,(SDL_Surface *a, Uint8 b, Uint8 c, Uint8 d),(a,b,c,d),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_SetSurfaceColorspace,(SDL_Surface *a, SDL_Colorspace b),(a,b),return)
|
SDL_DYNAPI_PROC(int,SDL_SetSurfaceColorspace,(SDL_Surface *a, SDL_Colorspace b),(a,b),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_SetSurfacePalette,(SDL_Surface *a, SDL_Palette *b),(a,b),return)
|
SDL_DYNAPI_PROC(int,SDL_SetSurfacePalette,(SDL_Surface *a, SDL_Palette *b),(a,b),return)
|
||||||
|
|
|
@ -3720,7 +3720,7 @@ static int VULKAN_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *cmd
|
||||||
rendererData->recreateSwapchain = SDL_FALSE;
|
rendererData->recreateSwapchain = SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VULKAN_UpdateVertexBuffer(renderer, vertices, vertsize, &stateCache) < 0) {
|
if (!VULKAN_UpdateVertexBuffer(renderer, vertices, vertsize, &stateCache)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,7 @@ float SDL_fmodf(float x, float y)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool SDL_isinf(double x)
|
int SDL_isinf(double x)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ISINF
|
#ifdef HAVE_ISINF
|
||||||
return isinf(x);
|
return isinf(x);
|
||||||
|
@ -281,7 +281,7 @@ SDL_bool SDL_isinf(double x)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool SDL_isinff(float x)
|
int SDL_isinff(float x)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ISINF_FLOAT_MACRO
|
#ifdef HAVE_ISINF_FLOAT_MACRO
|
||||||
return isinf(x);
|
return isinf(x);
|
||||||
|
@ -292,7 +292,7 @@ SDL_bool SDL_isinff(float x)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool SDL_isnan(double x)
|
int SDL_isnan(double x)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ISNAN
|
#ifdef HAVE_ISNAN
|
||||||
return isnan(x);
|
return isnan(x);
|
||||||
|
@ -301,7 +301,7 @@ SDL_bool SDL_isnan(double x)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_bool SDL_isnanf(float x)
|
int SDL_isnanf(float x)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ISNAN_FLOAT_MACRO
|
#ifdef HAVE_ISNAN_FLOAT_MACRO
|
||||||
return isnan(x);
|
return isnan(x);
|
||||||
|
|
|
@ -27,6 +27,6 @@
|
||||||
/* Useful functions and variables from SDL_RLEaccel.c */
|
/* Useful functions and variables from SDL_RLEaccel.c */
|
||||||
|
|
||||||
extern int SDL_RLESurface(SDL_Surface *surface);
|
extern int SDL_RLESurface(SDL_Surface *surface);
|
||||||
extern void SDL_UnRLESurface(SDL_Surface *surface, int recode);
|
extern void SDL_UnRLESurface(SDL_Surface *surface, SDL_bool recode);
|
||||||
|
|
||||||
#endif /* SDL_RLEaccel_c_h_ */
|
#endif /* SDL_RLEaccel_c_h_ */
|
||||||
|
|
|
@ -43,7 +43,7 @@ void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata)
|
||||||
#endif /* SDL_PLATFORM_WIN32 || SDL_PLATFORM_GDK */
|
#endif /* SDL_PLATFORM_WIN32 || SDL_PLATFORM_GDK */
|
||||||
|
|
||||||
SDL_DECLSPEC int SDLCALL SDL_GetDXGIOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex);
|
SDL_DECLSPEC int SDLCALL SDL_GetDXGIOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex);
|
||||||
SDL_bool SDL_GetDXGIOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex)
|
int SDL_GetDXGIOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex)
|
||||||
{
|
{
|
||||||
(void)displayID;
|
(void)displayID;
|
||||||
(void)adapterIndex;
|
(void)adapterIndex;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue