src/SDL.c
changeset 36 13ee9f4834ea
parent 0 74212992fb08
child 252 e8157fcb3114
     1.1 --- a/src/SDL.c	Wed May 23 00:36:17 2001 +0000
     1.2 +++ b/src/SDL.c	Wed May 23 23:35:10 2001 +0000
     1.3 @@ -231,3 +231,21 @@
     1.4  	return(&version);
     1.5  }
     1.6  
     1.7 +#if defined(_WIN32_WCE)
     1.8 +/* Need to include DllMain() on Windows CE for some reason.. */
     1.9 +#include <windows.h>
    1.10 +
    1.11 +BOOL APIENTRY DllMain( HANDLE hModule, 
    1.12 +                       DWORD  ul_reason_for_call, 
    1.13 +                       LPVOID lpReserved )
    1.14 +{
    1.15 +	switch (ul_reason_for_call) {
    1.16 +		case DLL_PROCESS_ATTACH:
    1.17 +		case DLL_THREAD_ATTACH:
    1.18 +		case DLL_THREAD_DETACH:
    1.19 +		case DLL_PROCESS_DETACH:
    1.20 +			break;
    1.21 +	}
    1.22 +	return TRUE;
    1.23 +}
    1.24 +#endif /* _WIN32_WCE */