# HG changeset patch # User Sam Lantinga # Date 1141207011 0 # Node ID 337665b695d1b4a6150336c691dcd0c42fd9d2de # Parent 84de7511f79ff50efe74ed71ca98a203eb16bed0 SetClassLongPtr isn't available in MinGW yet diff -r 84de7511f79f -r 337665b695d1 src/video/wincommon/SDL_syswm.c --- a/src/video/wincommon/SDL_syswm.c Wed Mar 01 09:43:47 2006 +0000 +++ b/src/video/wincommon/SDL_syswm.c Wed Mar 01 09:56:51 2006 +0000 @@ -220,6 +220,9 @@ 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);