SetClassLongPtr isn't available in MinGW yet
authorSam Lantinga <slouken@libsdl.org>
Wed, 01 Mar 2006 09:56:51 +0000
changeset 1457 337665b695d1
parent 1456 84de7511f79f
child 1458 bf8db2d92be1
SetClassLongPtr isn't available in MinGW yet
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);