mirror of
https://github.com/yawut/SDL.git
synced 2026-08-24 09:45:09 -05:00
SetClassLongPtr isn't available in MinGW yet
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user