include/SDL_video.h
changeset 337 9154ec9ca3d2
parent 297 f6ffac90895c
child 431 41cadcba32e8
     1.1 --- a/include/SDL_video.h	Wed Apr 10 17:12:32 2002 +0000
     1.2 +++ b/include/SDL_video.h	Thu Apr 11 14:35:16 2002 +0000
     1.3 @@ -237,14 +237,14 @@
     1.4   * SDL_Init() before opening the sound device, otherwise under Win32 DirectX,
     1.5   * you won't be able to set full-screen display modes.
     1.6   */
     1.7 -extern DECLSPEC int SDL_VideoInit(const char *driver_name, Uint32 flags);
     1.8 -extern DECLSPEC void SDL_VideoQuit(void);
     1.9 +extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name, Uint32 flags);
    1.10 +extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
    1.11  
    1.12  /* This function fills the given character buffer with the name of the
    1.13   * video driver, and returns a pointer to it if the video driver has
    1.14   * been initialized.  It returns NULL if no driver has been initialized.
    1.15   */
    1.16 -extern DECLSPEC char *SDL_VideoDriverName(char *namebuf, int maxlen);
    1.17 +extern DECLSPEC char * SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
    1.18  
    1.19  /*
    1.20   * This function returns a pointer to the current display surface.
    1.21 @@ -252,7 +252,7 @@
    1.22   * function returns the publicly visible surface, not the real video
    1.23   * surface.
    1.24   */
    1.25 -extern DECLSPEC SDL_Surface * SDL_GetVideoSurface(void);
    1.26 +extern DECLSPEC SDL_Surface * SDLCALL SDL_GetVideoSurface(void);
    1.27  
    1.28  /*
    1.29   * This function returns a read-only pointer to information about the
    1.30 @@ -260,7 +260,7 @@
    1.31   * member of the returned structure will contain the pixel format of the
    1.32   * "best" video mode.
    1.33   */
    1.34 -extern DECLSPEC const SDL_VideoInfo * SDL_GetVideoInfo(void);
    1.35 +extern DECLSPEC const SDL_VideoInfo * SDLCALL SDL_GetVideoInfo(void);
    1.36  
    1.37  /* 
    1.38   * Check to see if a particular video mode is supported.
    1.39 @@ -273,7 +273,7 @@
    1.40   * The arguments to SDL_VideoModeOK() are the same ones you would pass to
    1.41   * SDL_SetVideoMode()
    1.42   */
    1.43 -extern DECLSPEC int SDL_VideoModeOK(int width, int height, int bpp, Uint32 flags);
    1.44 +extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp, Uint32 flags);
    1.45  
    1.46  /*
    1.47   * Return a pointer to an array of available screen dimensions for the
    1.48 @@ -284,7 +284,7 @@
    1.49   * If 'format' is NULL, the mode list will be for the format given 
    1.50   * by SDL_GetVideoInfo()->vfmt
    1.51   */
    1.52 -extern DECLSPEC SDL_Rect ** SDL_ListModes(SDL_PixelFormat *format, Uint32 flags);
    1.53 +extern DECLSPEC SDL_Rect ** SDLCALL SDL_ListModes(SDL_PixelFormat *format, Uint32 flags);
    1.54  
    1.55  /*
    1.56   * Set up a video mode with the specified width, height and bits-per-pixel.
    1.57 @@ -344,7 +344,7 @@
    1.58   * SDL will fall back to reduced functionality if the exact flags you wanted
    1.59   * are not available.
    1.60   */
    1.61 -extern DECLSPEC SDL_Surface *SDL_SetVideoMode
    1.62 +extern DECLSPEC SDL_Surface * SDLCALL SDL_SetVideoMode
    1.63  			(int width, int height, int bpp, Uint32 flags);
    1.64  
    1.65  /*
    1.66 @@ -353,9 +353,9 @@
    1.67   * screen.
    1.68   * These functions should not be called while 'screen' is locked.
    1.69   */
    1.70 -extern DECLSPEC void SDL_UpdateRects
    1.71 +extern DECLSPEC void SDLCALL SDL_UpdateRects
    1.72  		(SDL_Surface *screen, int numrects, SDL_Rect *rects);
    1.73 -extern DECLSPEC void SDL_UpdateRect
    1.74 +extern DECLSPEC void SDLCALL SDL_UpdateRect
    1.75  		(SDL_Surface *screen, Sint32 x, Sint32 y, Uint32 w, Uint32 h);
    1.76  
    1.77  /*
    1.78 @@ -368,7 +368,7 @@
    1.79   * setting the video mode for this function to perform hardware flipping.
    1.80   * This function returns 0 if successful, or -1 if there was an error.
    1.81   */
    1.82 -extern DECLSPEC int SDL_Flip(SDL_Surface *screen);
    1.83 +extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface *screen);
    1.84  
    1.85  /*
    1.86   * Set the gamma correction for each of the color channels.
    1.87 @@ -378,7 +378,7 @@
    1.88   * be emulated using gamma ramps, if available.  If successful, this
    1.89   * function returns 0, otherwise it returns -1.
    1.90   */
    1.91 -extern DECLSPEC int SDL_SetGamma(float red, float green, float blue);
    1.92 +extern DECLSPEC int SDLCALL SDL_SetGamma(float red, float green, float blue);
    1.93  
    1.94  /*
    1.95   * Set the gamma translation table for the red, green, and blue channels
    1.96 @@ -392,7 +392,7 @@
    1.97   * hardware does not support gamma translation, or otherwise fails,
    1.98   * this function will return -1.
    1.99   */
   1.100 -extern DECLSPEC int SDL_SetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue);
   1.101 +extern DECLSPEC int SDLCALL SDL_SetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue);
   1.102  
   1.103  /*
   1.104   * Retrieve the current values of the gamma translation tables.
   1.105 @@ -403,7 +403,7 @@
   1.106   * hardware does not support gamma translation, or otherwise fails,
   1.107   * this function will return -1.
   1.108   */
   1.109 -extern DECLSPEC int SDL_GetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue);
   1.110 +extern DECLSPEC int SDLCALL SDL_GetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue);
   1.111  
   1.112  /*
   1.113   * Sets a portion of the colormap for the given 8-bit surface.  If 'surface'
   1.114 @@ -420,7 +420,7 @@
   1.115   * you desire, even if the window colormap has to be warped or run under
   1.116   * emulation.
   1.117   */
   1.118 -extern DECLSPEC int SDL_SetColors(SDL_Surface *surface, 
   1.119 +extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface *surface, 
   1.120  			SDL_Color *colors, int firstcolor, int ncolors);
   1.121  
   1.122  /*
   1.123 @@ -439,32 +439,32 @@
   1.124   * SDL_SetColors() is equivalent to calling this function with
   1.125   *     flags = (SDL_LOGPAL|SDL_PHYSPAL).
   1.126   */
   1.127 -extern DECLSPEC int SDL_SetPalette(SDL_Surface *surface, int flags,
   1.128 +extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface *surface, int flags,
   1.129  				   SDL_Color *colors, int firstcolor,
   1.130  				   int ncolors);
   1.131  
   1.132  /*
   1.133   * Maps an RGB triple to an opaque pixel value for a given pixel format
   1.134   */
   1.135 -extern DECLSPEC Uint32 SDL_MapRGB
   1.136 +extern DECLSPEC Uint32 SDLCALL SDL_MapRGB
   1.137  			(SDL_PixelFormat *format, Uint8 r, Uint8 g, Uint8 b);
   1.138  
   1.139  /*
   1.140   * Maps an RGBA quadruple to a pixel value for a given pixel format
   1.141   */
   1.142 -extern DECLSPEC Uint32 SDL_MapRGBA(SDL_PixelFormat *format,
   1.143 +extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(SDL_PixelFormat *format,
   1.144  				   Uint8 r, Uint8 g, Uint8 b, Uint8 a);
   1.145  
   1.146  /*
   1.147   * Maps a pixel value into the RGB components for a given pixel format
   1.148   */
   1.149 -extern DECLSPEC void SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt,
   1.150 +extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt,
   1.151  				Uint8 *r, Uint8 *g, Uint8 *b);
   1.152  
   1.153  /*
   1.154   * Maps a pixel value into the RGBA components for a given pixel format
   1.155   */
   1.156 -extern DECLSPEC void SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt,
   1.157 +extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt,
   1.158  				 Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);
   1.159  
   1.160  /*
   1.161 @@ -502,13 +502,13 @@
   1.162   * the SDL_HWSURFACE flag set, and will be created in system memory instead.
   1.163   */
   1.164  #define SDL_AllocSurface    SDL_CreateRGBSurface
   1.165 -extern DECLSPEC SDL_Surface *SDL_CreateRGBSurface
   1.166 +extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurface
   1.167  			(Uint32 flags, int width, int height, int depth, 
   1.168  			Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
   1.169 -extern DECLSPEC SDL_Surface *SDL_CreateRGBSurfaceFrom(void *pixels,
   1.170 +extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,
   1.171  			int width, int height, int depth, int pitch,
   1.172  			Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
   1.173 -extern DECLSPEC void SDL_FreeSurface(SDL_Surface *surface);
   1.174 +extern DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface *surface);
   1.175  
   1.176  /*
   1.177   * SDL_LockSurface() sets up a surface for directly accessing the pixels.
   1.178 @@ -528,8 +528,8 @@
   1.179   *
   1.180   * SDL_LockSurface() returns 0, or -1 if the surface couldn't be locked.
   1.181   */
   1.182 -extern DECLSPEC int SDL_LockSurface(SDL_Surface *surface);
   1.183 -extern DECLSPEC void SDL_UnlockSurface(SDL_Surface *surface);
   1.184 +extern DECLSPEC int SDLCALL SDL_LockSurface(SDL_Surface *surface);
   1.185 +extern DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface);
   1.186  
   1.187  /*
   1.188   * Load a surface from a seekable SDL data source (memory or file.)
   1.189 @@ -537,7 +537,7 @@
   1.190   * Returns the new surface, or NULL if there was an error.
   1.191   * The new surface should be freed with SDL_FreeSurface().
   1.192   */
   1.193 -extern DECLSPEC SDL_Surface * SDL_LoadBMP_RW(SDL_RWops *src, int freesrc);
   1.194 +extern DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP_RW(SDL_RWops *src, int freesrc);
   1.195  
   1.196  /* Convenience macro -- load a surface from a file */
   1.197  #define SDL_LoadBMP(file)	SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)
   1.198 @@ -547,7 +547,7 @@
   1.199   * If 'freedst' is non-zero, the source will be closed after being written.
   1.200   * Returns 0 if successful or -1 if there was an error.
   1.201   */
   1.202 -extern DECLSPEC int SDL_SaveBMP_RW
   1.203 +extern DECLSPEC int SDLCALL SDL_SaveBMP_RW
   1.204  		(SDL_Surface *surface, SDL_RWops *dst, int freedst);
   1.205  
   1.206  /* Convenience macro -- save a surface to a file */
   1.207 @@ -563,7 +563,7 @@
   1.208   * If 'flag' is 0, this function clears any current color key.
   1.209   * This function returns 0, or -1 if there was an error.
   1.210   */
   1.211 -extern DECLSPEC int SDL_SetColorKey
   1.212 +extern DECLSPEC int SDLCALL SDL_SetColorKey
   1.213  			(SDL_Surface *surface, Uint32 flag, Uint32 key);
   1.214  
   1.215  /*
   1.216 @@ -579,7 +579,7 @@
   1.217   * OR:ing the flag with SDL_RLEACCEL requests RLE acceleration for the
   1.218   * surface; if SDL_RLEACCEL is not specified, the RLE accel will be removed.
   1.219   */
   1.220 -extern DECLSPEC int SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha);
   1.221 +extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha);
   1.222  
   1.223  /*
   1.224   * Sets the clipping rectangle for the destination surface in a blit.
   1.225 @@ -593,14 +593,14 @@
   1.226   * Note that blits are automatically clipped to the edges of the source
   1.227   * and destination surfaces.
   1.228   */
   1.229 -extern DECLSPEC SDL_bool SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect);
   1.230 +extern DECLSPEC SDL_bool SDLCALL SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect);
   1.231  
   1.232  /*
   1.233   * Gets the clipping rectangle for the destination surface in a blit.
   1.234   * 'rect' must be a pointer to a valid rectangle which will be filled
   1.235   * with the correct values.
   1.236   */
   1.237 -extern DECLSPEC void SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect);
   1.238 +extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect);
   1.239  
   1.240  /*
   1.241   * Creates a new surface of the specified format, and then copies and maps 
   1.242 @@ -614,7 +614,7 @@
   1.243   *
   1.244   * This function is used internally by SDL_DisplayFormat().
   1.245   */
   1.246 -extern DECLSPEC SDL_Surface *SDL_ConvertSurface
   1.247 +extern DECLSPEC SDL_Surface * SDLCALL SDL_ConvertSurface
   1.248  			(SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags);
   1.249  
   1.250  /*
   1.251 @@ -691,13 +691,13 @@
   1.252  /* This is the public blit function, SDL_BlitSurface(), and it performs
   1.253     rectangle validation and clipping before passing it to SDL_LowerBlit()
   1.254  */
   1.255 -extern DECLSPEC int SDL_UpperBlit
   1.256 +extern DECLSPEC int SDLCALL SDL_UpperBlit
   1.257  			(SDL_Surface *src, SDL_Rect *srcrect,
   1.258  			 SDL_Surface *dst, SDL_Rect *dstrect);
   1.259  /* This is a semi-private blit function and it performs low-level surface
   1.260     blitting only.
   1.261  */
   1.262 -extern DECLSPEC int SDL_LowerBlit
   1.263 +extern DECLSPEC int SDLCALL SDL_LowerBlit
   1.264  			(SDL_Surface *src, SDL_Rect *srcrect,
   1.265  			 SDL_Surface *dst, SDL_Rect *dstrect);
   1.266  
   1.267 @@ -710,7 +710,7 @@
   1.268   * can be generated by the SDL_MapRGB() function.
   1.269   * This function returns 0 on success, or -1 on error.
   1.270   */
   1.271 -extern DECLSPEC int SDL_FillRect
   1.272 +extern DECLSPEC int SDLCALL SDL_FillRect
   1.273  		(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);
   1.274  
   1.275  /* 
   1.276 @@ -724,7 +724,7 @@
   1.277   *
   1.278   * If the conversion fails or runs out of memory, it returns NULL
   1.279   */
   1.280 -extern DECLSPEC SDL_Surface * SDL_DisplayFormat(SDL_Surface *surface);
   1.281 +extern DECLSPEC SDL_Surface * SDLCALL SDL_DisplayFormat(SDL_Surface *surface);
   1.282  
   1.283  /* 
   1.284   * This function takes a surface and copies it to a new surface of the
   1.285 @@ -738,7 +738,7 @@
   1.286   *
   1.287   * If the conversion fails or runs out of memory, it returns NULL
   1.288   */
   1.289 -extern DECLSPEC SDL_Surface * SDL_DisplayFormatAlpha(SDL_Surface *surface);
   1.290 +extern DECLSPEC SDL_Surface * SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *surface);
   1.291  
   1.292  
   1.293  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
   1.294 @@ -750,12 +750,12 @@
   1.295     the contents of the display surface underneath the area where the overlay
   1.296     is shown is undefined - it may be overwritten with the converted YUV data.
   1.297  */
   1.298 -extern DECLSPEC SDL_Overlay *SDL_CreateYUVOverlay(int width, int height,
   1.299 +extern DECLSPEC SDL_Overlay * SDLCALL SDL_CreateYUVOverlay(int width, int height,
   1.300  				Uint32 format, SDL_Surface *display);
   1.301  
   1.302  /* Lock an overlay for direct access, and unlock it when you are done */
   1.303 -extern DECLSPEC int SDL_LockYUVOverlay(SDL_Overlay *overlay);
   1.304 -extern DECLSPEC void SDL_UnlockYUVOverlay(SDL_Overlay *overlay);
   1.305 +extern DECLSPEC int SDLCALL SDL_LockYUVOverlay(SDL_Overlay *overlay);
   1.306 +extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay *overlay);
   1.307  
   1.308  /* Blit a video overlay to the display surface.
   1.309     The contents of the video surface underneath the blit destination are
   1.310 @@ -763,10 +763,10 @@
   1.311     The width and height of the destination rectangle may be different from
   1.312     that of the overlay, but currently only 2x scaling is supported.
   1.313  */
   1.314 -extern DECLSPEC int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect);
   1.315 +extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect);
   1.316  
   1.317  /* Free a video overlay */
   1.318 -extern DECLSPEC void SDL_FreeYUVOverlay(SDL_Overlay *overlay);
   1.319 +extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay *overlay);
   1.320  
   1.321  
   1.322  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
   1.323 @@ -783,17 +783,17 @@
   1.324   *
   1.325   * This is disabled in default builds of SDL.
   1.326   */
   1.327 -extern DECLSPEC int SDL_GL_LoadLibrary(const char *path);
   1.328 +extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
   1.329  
   1.330  /*
   1.331   * Get the address of a GL function (for extension functions)
   1.332   */
   1.333 -extern DECLSPEC void *SDL_GL_GetProcAddress(const char* proc);
   1.334 +extern DECLSPEC void * SDLCALL SDL_GL_GetProcAddress(const char* proc);
   1.335  
   1.336  /*
   1.337   * Set an attribute of the OpenGL subsystem before intialization.
   1.338   */
   1.339 -extern DECLSPEC int SDL_GL_SetAttribute(SDL_GLattr attr, int value);
   1.340 +extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value);
   1.341  
   1.342  /*
   1.343   * Get an attribute of the OpenGL subsystem from the windowing
   1.344 @@ -804,20 +804,20 @@
   1.345   * Developers should track the values they pass into SDL_GL_SetAttribute
   1.346   * themselves if they want to retrieve these values.
   1.347   */
   1.348 -extern DECLSPEC int SDL_GL_GetAttribute(SDL_GLattr attr, int* value);
   1.349 +extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int* value);
   1.350  
   1.351  /*
   1.352   * Swap the OpenGL buffers, if double-buffering is supported.
   1.353   */
   1.354 -extern DECLSPEC void SDL_GL_SwapBuffers(void);
   1.355 +extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
   1.356  
   1.357  /*
   1.358   * Internal functions that should not be called unless you have read
   1.359   * and understood the source code for these functions.
   1.360   */
   1.361 -extern DECLSPEC void SDL_GL_UpdateRects(int numrects, SDL_Rect* rects);
   1.362 -extern DECLSPEC void SDL_GL_Lock(void);
   1.363 -extern DECLSPEC void SDL_GL_Unlock(void);
   1.364 +extern DECLSPEC void SDLCALL SDL_GL_UpdateRects(int numrects, SDL_Rect* rects);
   1.365 +extern DECLSPEC void SDLCALL SDL_GL_Lock(void);
   1.366 +extern DECLSPEC void SDLCALL SDL_GL_Unlock(void);
   1.367  
   1.368  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
   1.369  /* These functions allow interaction with the window manager, if any.        */
   1.370 @@ -826,8 +826,8 @@
   1.371  /*
   1.372   * Sets/Gets the title and icon text of the display window
   1.373   */
   1.374 -extern DECLSPEC void SDL_WM_SetCaption(const char *title, const char *icon);
   1.375 -extern DECLSPEC void SDL_WM_GetCaption(char **title, char **icon);
   1.376 +extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title, const char *icon);
   1.377 +extern DECLSPEC void SDLCALL SDL_WM_GetCaption(char **title, char **icon);
   1.378  
   1.379  /*
   1.380   * Sets the icon for the display window.
   1.381 @@ -835,14 +835,14 @@
   1.382   * It takes an icon surface, and a mask in MSB format.
   1.383   * If 'mask' is NULL, the entire icon surface will be used as the icon.
   1.384   */
   1.385 -extern DECLSPEC void SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask);
   1.386 +extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask);
   1.387  
   1.388  /*
   1.389   * This function iconifies the window, and returns 1 if it succeeded.
   1.390   * If the function succeeds, it generates an SDL_APPACTIVE loss event.
   1.391   * This function is a noop and returns 0 in non-windowed environments.
   1.392   */
   1.393 -extern DECLSPEC int SDL_WM_IconifyWindow(void);
   1.394 +extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
   1.395  
   1.396  /*
   1.397   * Toggle fullscreen mode without changing the contents of the screen.
   1.398 @@ -859,7 +859,7 @@
   1.399   *
   1.400   * This is currently only implemented in the X11 video driver.
   1.401   */
   1.402 -extern DECLSPEC int SDL_WM_ToggleFullScreen(SDL_Surface *surface);
   1.403 +extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface *surface);
   1.404  
   1.405  /*
   1.406   * This function allows you to set and query the input grab state of
   1.407 @@ -876,10 +876,10 @@
   1.408   * and nearly all keyboard input is passed directly to the application,
   1.409   * and not interpreted by a window manager, if any.
   1.410   */
   1.411 -extern DECLSPEC SDL_GrabMode SDL_WM_GrabInput(SDL_GrabMode mode);
   1.412 +extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
   1.413  
   1.414  /* Not in public API at the moment - do not use! */
   1.415 -extern DECLSPEC int SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect,
   1.416 +extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect,
   1.417                                      SDL_Surface *dst, SDL_Rect *dstrect);
   1.418                      
   1.419  /* Ends C function definitions when using C++ */