SetClassLongPtr isn't available in MinGW yet

This commit is contained in:
Sam Lantinga
2006-03-01 09:56:51 +00:00
parent 62c5e3a5d5
commit 4a943f375d

View File

@@ -220,6 +220,9 @@ void WIN_SetWMIcon(_THIS, SDL_Surface *icon, Uint8 *mask)
if ( screen_icn == NULL ) {
SDL_SetError("Couldn't create Win32 icon handle");
} else {
#ifndef SetClassLongPtr
#define SetClassLongPtr SetClassLong
#endif
SetClassLongPtr(SDL_Window, GCL_HICON, (LONG_PTR)screen_icn);
}
SDL_stack_free(icon_win32);