forked from 0ad/0ad
janwas
9269be9ee3
(see http://www.wildfiregames.com/forum/index.php?showtopic=11450&hl= ) clean up debug module . no longer include platform-dependent header (-> less rebuilds) . DISPLAY_ERROR -> DEBUG_DISPLAY_ERROR . parts of config.h that don't affect all files moved to config.2 (-> fewer full rebuilds) . remove creaky symbol cache (no longer needed for mmgr) . remove TLS thread naming stuff (can use debugger's thread window instead; no need for platform independence there) wdbg: remove thread suspension and breakpoint APIs (not needed) acpi: fix: u64 -> uintptr_t wutil: fix WinScopedLock, use that instead of direct lock() functions misc: . get rid of SAFE_STRCPY, replace with strcpy_s . remove _getcwd (shouldn't be used) This was SVN commit r5563.
44 lines
1.0 KiB
C
44 lines
1.0 KiB
C
/**
|
|
* =========================================================================
|
|
* File : sdl.h
|
|
* Project : 0 A.D.
|
|
* Description : SDL header; uses emulator on Windows, otherwise libsdl.
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_SDL
|
|
#define INCLUDED_SDL
|
|
|
|
#include "sdl_fwd.h"
|
|
#include "lib/config2.h" // CONFIG2_WSDL
|
|
|
|
#if OS_WIN && CONFIG2_WSDL
|
|
# include "lib/sysdep/win/wsdl.h"
|
|
#else
|
|
|
|
# include <SDL/SDL.h>
|
|
# include <SDL/SDL_thread.h>
|
|
|
|
// if the compiler doesn't support inlining, this header will pull
|
|
// in static bswap routines. doesn't matter - modern compilers
|
|
// will strip them if unused, and this is more convenient than
|
|
// another header that toggles between wsdl and SDL_endian.h.
|
|
# include <SDL/SDL_endian.h>
|
|
|
|
# if MSC_VERSION
|
|
# pragma comment(lib, "SDL")
|
|
# pragma comment(lib, "SDLmain")
|
|
# endif
|
|
|
|
#endif
|
|
|
|
// complete definition of our forward-declared SDL_Event (see sdl_fwd.h)
|
|
struct SDL_Event_
|
|
{
|
|
SDL_Event ev;
|
|
};
|
|
|
|
#endif // INCLUDED_SDL
|