1
0
forked from 0ad/0ad
0ad/source/lib/external_libraries/wxwidgets.h
janwas 9d2acce9d8 # SwEng/cleanup
- deleted most old libraries/headers in codepit to avoid confusion (they
are now in SVN anyway). updated required-libraries-linux.txt accordingly
- moved rand() into separate file, out of lib.cpp
- removed CGUIScrollBarStyle.cpp to avoid empty-file warning
- wxwidgets.h: remove redundant #pragma lib and include wxw PCH
- move openal-specific stuff to external_libraries/openal.h
- cpu, bsd: macosx is-a bsd, so only test OS_BSD

This was SVN commit r5082.
2007-05-18 00:14:26 +00:00

42 lines
1.1 KiB
C

/**
* =========================================================================
* File : wxwidgets.h
* Project : 0 A.D.
* Description : bring in wxWidgets headers, with compatibility fixes
* =========================================================================
*/
// license: GPL; see lib/license.txt
#ifndef INCLUDED_WXWIDGETS
#define INCLUDED_WXWIDGETS
// prevent wxWidgets from pulling in windows.h - it's mostly unnecessary
// and interferes with posix_sock's declarations.
#define _WINDOWS_ // <windows.h> include guard
// manually define what is actually needed from windows.h:
struct HINSTANCE__
{
int unused;
};
typedef struct HINSTANCE__* HINSTANCE; // definition as if STRICT were #defined
#include "wx/wxprec.h"
#include "wx/file.h"
#include "wx/ffile.h"
#include "wx/filename.h"
#include "wx/mimetype.h"
#include "wx/statline.h"
#include "wx/debugrpt.h"
#ifdef __WXMSW__
#include "wx/evtloop.h" // for SetCriticalWindow()
#endif // __WXMSW__
// note: wxWidgets already does #pragma comment(lib) to add link targets.
#endif // #ifndef INCLUDED_WXWIDGETS