comparison src/SDL.c @ 5092:327f181542f1

Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share. I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 21:20:30 -0800
parents c2539ff054c8
children dc0dfdd58f27
comparison
equal deleted inserted replaced
5091:79bd1e289005 5092:327f181542f1
327 327
328 #if defined(__WIN32__) 328 #if defined(__WIN32__)
329 329
330 #if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL)) 330 #if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL))
331 /* Need to include DllMain() on Watcom C for some reason.. */ 331 /* Need to include DllMain() on Watcom C for some reason.. */
332 #define WIN32_LEAN_AND_MEAN 332 #include "core/windows/SDL_windows.h"
333 #include <windows.h>
334 333
335 BOOL APIENTRY 334 BOOL APIENTRY
336 _DllMainCRTStartup(HANDLE hModule, 335 _DllMainCRTStartup(HANDLE hModule,
337 DWORD ul_reason_for_call, LPVOID lpReserved) 336 DWORD ul_reason_for_call, LPVOID lpReserved)
338 { 337 {