2007-05-04 19:30:32 +02:00
|
|
|
/**
|
|
|
|
* =========================================================================
|
2007-05-05 19:41:20 +02:00
|
|
|
* File : wxwidgets.h
|
2007-05-04 19:30:32 +02:00
|
|
|
* Project : 0 A.D.
|
|
|
|
* Description : pulls in wxWidgets headers, with compatibility fixes
|
|
|
|
*
|
|
|
|
* @author Jan.Wassenberg@stud.uni-karlsruhe.de
|
|
|
|
* =========================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Jan Wassenberg
|
|
|
|
*
|
|
|
|
* Redistribution and/or modification are also permitted under the
|
|
|
|
* terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation (version 2 or later, at your option).
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
*/
|
|
|
|
|
2007-05-05 19:41:20 +02:00
|
|
|
#ifndef INCLUDED_WXWIDGETS
|
|
|
|
#define INCLUDED_WXWIDGETS
|
2007-05-04 19:30:32 +02:00
|
|
|
|
|
|
|
// 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/wx.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__
|
|
|
|
|
|
|
|
|
2007-05-05 19:41:20 +02:00
|
|
|
// automatically link against the required library
|
|
|
|
#if MSC_VERSION
|
|
|
|
# ifdef NDEBUG
|
|
|
|
# else
|
|
|
|
# pragma comment(lib, "wxmsw28ud_core.lib")
|
|
|
|
# pragma comment(lib, "wxmsw28ud_qa.lib")
|
|
|
|
# pragma comment(lib, "wxbase28ud.lib")
|
|
|
|
# pragma comment(lib, "wxbase28ud_xml.lib")
|
|
|
|
|
|
|
|
|
|
|
|
//# pragma comment(lib, "wxbase28ud_net.lib")
|
|
|
|
//# pragma comment(lib, "wxbase28ud_odbc.lib")
|
|
|
|
//# pragma comment(lib, "wxmsw28ud_adv.lib")
|
|
|
|
//# pragma comment(lib, "wxmsw28ud_aui.lib")
|
|
|
|
//# pragma comment(lib, "wxmsw28ud_dbgrid.lib")
|
|
|
|
//# pragma comment(lib, "wxmsw28ud_gl.lib")
|
|
|
|
//# pragma comment(lib, "wxmsw28ud_html.lib")
|
|
|
|
//# pragma comment(lib, "wxmsw28ud_media.lib")
|
|
|
|
//# pragma comment(lib, "wxmsw28ud_richtext.lib")
|
|
|
|
//# pragma comment(lib, "wxmsw28ud_xrc.lib")
|
|
|
|
//# pragma comment(lib, "wxexpatd.lib")
|
|
|
|
//# pragma comment(lib, "wxpngd.lib")
|
|
|
|
//# pragma comment(lib, "wxjpegd.lib")
|
|
|
|
//# pragma comment(lib, "wxtiffd.lib")
|
|
|
|
//# pragma comment(lib, "wxzlibd.lib")
|
|
|
|
//# pragma comment(lib, "wxregexd.lib")
|
|
|
|
|
|
|
|
# pragma comment(lib, "Rpcrt4.lib") // Uuid
|
|
|
|
# pragma comment(lib, "comctl32.lib") // ImageList_*
|
|
|
|
|
|
|
|
|
|
|
|
# endif // NDEBUG
|
|
|
|
#endif // MSC_VERSION
|
|
|
|
|
|
|
|
|
|
|
|
#endif // #ifndef INCLUDED_WXWIDGETS
|