forked from 0ad/0ad
janwas
4be0fe18a0
. major compat fixes for interoperation with wxw. . add crashlog_sender (modified version of debgrpt wxw sample). compiles but untested, will be changed heavily further improvements: . wposix no longer declares CRT functions. instead, use CRT headers.. but don't allow their (incorrect/non-POSIX) declarations to propagate to users. . split up win.cpp into wstartup, wutil, winit . extern "C" -> EXTERN_C . move sdl.* to lib/external_libraries and add png.h+zlib.h (fixes for and include of the library) This was SVN commit r5028.
16 lines
603 B
C
16 lines
603 B
C
#ifndef SDL_FWD_H__
|
|
#define SDL_FWD_H__
|
|
|
|
// 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 pointers.
|
|
struct SDL_Event_;
|
|
|
|
#endif // #ifndef SDL_FWD_H__
|