janwas
78d950e419
win_internal -> win.h (pulls in <windows.h>, with fixes afterwards) remove empty waio_internal and wsysdep Move source/sound license notice into source/sound/license.txt This was SVN commit r5044.
26 lines
944 B
C
26 lines
944 B
C
/**
|
|
* =========================================================================
|
|
* File : sdl_fwd.h
|
|
* Project : 0 A.D.
|
|
* Description : forward declaration of SDL_Event
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_SDL_FWD
|
|
#define INCLUDED_SDL_FWD
|
|
|
|
// 2006-08-26 SDL is dragged into 6 of our 7 static library components.
|
|
// it must be specified in each of their "extern_libs" so that the
|
|
// include path is set and <SDL/sdl.h> can be found.
|
|
//
|
|
// obviously this is bad, so we work around the root cause. mostly only
|
|
// SDL_Event is needed. unfortunately it cannot be forward-declared,
|
|
// because it is a union (regrettable design mistake).
|
|
// we fix this by wrapping it in a struct, which can safely be
|
|
// forward-declared and used for SDL_Event_* parameters.
|
|
struct SDL_Event_;
|
|
|
|
#endif // #ifndef INCLUDED_SDL_FWD
|