From 4a943f375d1ebe978ea367ee5f811c7e3292ce15 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 1 Mar 2006 09:56:51 +0000 Subject: [PATCH] SetClassLongPtr isn't available in MinGW yet --- src/video/wincommon/SDL_syswm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/wincommon/SDL_syswm.c b/src/video/wincommon/SDL_syswm.c index 73b27bc0b..2635b0ce5 100644 --- a/src/video/wincommon/SDL_syswm.c +++ b/src/video/wincommon/SDL_syswm.c @@ -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);