src/SDL.c
changeset 1465 8dfa9a6d69a5
parent 1433 bb6839704ed6
child 1487 dc6b59e925a2
equal deleted inserted replaced
1464:af30090c0330 1465:8dfa9a6d69a5
   323 }
   323 }
   324 #endif /* __WATCOMC__ */
   324 #endif /* __WATCOMC__ */
   325 
   325 
   326 #elif defined(__WIN32__)
   326 #elif defined(__WIN32__)
   327 
   327 
   328 #if !defined(HAVE_LIBC) || defined(_WIN32_WCE) || (defined(__WATCOMC__) && defined(BUILD_DLL))
   328 #if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL))
   329 /* Need to include DllMain() on Windows CE and Watcom C for some reason.. */
   329 /* Need to include DllMain() on Watcom C for some reason.. */
   330 #define WIN32_LEAN_AND_MEAN
   330 #define WIN32_LEAN_AND_MEAN
   331 #include <windows.h>
   331 #include <windows.h>
   332 
   332 
   333 BOOL APIENTRY _DllMainCRTStartup( HANDLE hModule, 
   333 BOOL APIENTRY _DllMainCRTStartup( HANDLE hModule, 
   334                        DWORD  ul_reason_for_call, 
   334                        DWORD  ul_reason_for_call, 
   341 		case DLL_PROCESS_DETACH:
   341 		case DLL_PROCESS_DETACH:
   342 			break;
   342 			break;
   343 	}
   343 	}
   344 	return TRUE;
   344 	return TRUE;
   345 }
   345 }
   346 #endif /* _WIN32_WCE and building DLL with Watcom C */
   346 #endif /* building DLL with Watcom C */
   347 
   347 
   348 #endif /* OS/2 elif __WIN32__ */
   348 #endif /* OS/2 elif __WIN32__ */