Fixed a few public APIs that we accidentally neglected to mark as SDLCALL.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 23 Nov 2013 15:52:49 -0500
changeset 8028 e3e00f8e6b91
parent 8027 21dcb24404c0
child 8029 cf81e6709b3d
Fixed a few public APIs that we accidentally neglected to mark as SDLCALL. Fixes Bugzilla #2262.
include/SDL_joystick.h
include/SDL_main.h
include/SDL_render.h
--- a/include/SDL_joystick.h	Sat Nov 23 18:37:36 2013 +0100
+++ b/include/SDL_joystick.h	Sat Nov 23 15:52:49 2013 -0500
@@ -115,7 +115,7 @@
  *  Return a string representation for this guid. pszGUID must point to at least 33 bytes
  *  (32 for the string plus a NULL terminator).
  */
-extern DECLSPEC void SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID);
+extern DECLSPEC void SDLCALL SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID);
 
 /**
  *  convert a string into a joystick formatted guid
--- a/include/SDL_main.h	Sat Nov 23 18:37:36 2013 +0100
+++ b/include/SDL_main.h	Sat Nov 23 15:52:49 2013 -0500
@@ -101,7 +101,7 @@
  *  Calling this yourself without knowing what you're doing can cause
  *  crashes and hard to diagnose problems with your application.
  */
-extern DECLSPEC void SDL_SetMainReady(void);
+extern DECLSPEC void SDLCALL SDL_SetMainReady(void);
 
 #ifdef __WIN32__
 
--- a/include/SDL_render.h	Sat Nov 23 18:37:36 2013 +0100
+++ b/include/SDL_render.h	Sat Nov 23 15:52:49 2013 -0500
@@ -596,7 +596,7 @@
  *
  *  \return 0 on success, or -1 on error
  */
-extern DECLSPEC int SDL_SetRenderDrawColor(SDL_Renderer * renderer,
+extern DECLSPEC int SDLCALL SDL_SetRenderDrawColor(SDL_Renderer * renderer,
                                            Uint8 r, Uint8 g, Uint8 b,
                                            Uint8 a);
 
@@ -612,7 +612,7 @@
  *
  *  \return 0 on success, or -1 on error
  */
-extern DECLSPEC int SDL_GetRenderDrawColor(SDL_Renderer * renderer,
+extern DECLSPEC int SDLCALL SDL_GetRenderDrawColor(SDL_Renderer * renderer,
                                            Uint8 * r, Uint8 * g, Uint8 * b,
                                            Uint8 * a);