Windows CE patches contributed by Rainer Loritz
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4037
This commit is contained in:
parent
09112109c3
commit
a95fb10027
11 changed files with 413 additions and 63 deletions
18
src/SDL.c
18
src/SDL.c
|
@ -231,3 +231,21 @@ const SDL_version * SDL_Linked_Version(void)
|
|||
return(&version);
|
||||
}
|
||||
|
||||
#if defined(_WIN32_WCE)
|
||||
/* Need to include DllMain() on Windows CE for some reason.. */
|
||||
#include <windows.h>
|
||||
|
||||
BOOL APIENTRY DllMain( HANDLE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved )
|
||||
{
|
||||
switch (ul_reason_for_call) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
case DLL_THREAD_ATTACH:
|
||||
case DLL_THREAD_DETACH:
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
#endif /* _WIN32_WCE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue