1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-10-27 16:01:45 +00:00
|
|
|
// Name: wx/wxprec.h
|
1998-05-20 14:01:55 +00:00
|
|
|
// Purpose: Includes the appropriate files for precompiled headers
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
2005-05-04 18:57:50 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1999-08-02 21:31:09 +00:00
|
|
|
// compiler detection; includes setup.h
|
|
|
|
#include "wx/defs.h"
|
1999-02-03 22:50:06 +00:00
|
|
|
|
1999-08-02 21:31:09 +00:00
|
|
|
// check if to use precompiled headers: do it for most Windows compilers unless
|
|
|
|
// explicitly disabled by defining NOPCH
|
2006-05-31 12:18:02 +00:00
|
|
|
#if defined(__VISUALC__) || \
|
|
|
|
defined(__DMC__) || \
|
|
|
|
defined(__VISAGECPP__) || \
|
|
|
|
defined(__WATCOMC__) || \
|
|
|
|
defined(__BORLANDC__)
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2004-06-23 15:01:33 +00:00
|
|
|
|
2005-02-20 02:19:52 +00:00
|
|
|
// If user did not request NOCPH and we're not building using configure
|
|
|
|
// then assume user wants precompiled headers.
|
|
|
|
#if !defined(NOPCH) && !defined(__WX_SETUP_H__)
|
1999-02-03 16:48:12 +00:00
|
|
|
#define WX_PRECOMP
|
|
|
|
#endif
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// For some reason, this must be defined for common dialogs to work.
|
|
|
|
#ifdef __WATCOMC__
|
1999-08-02 21:31:09 +00:00
|
|
|
#define INCLUDE_COMMDLG_H 1
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef WX_PRECOMP
|
|
|
|
|
2007-03-19 14:45:38 +00:00
|
|
|
// include "wx/chartype.h" first to ensure that UNICODE macro is correctly set
|
2000-07-15 19:51:35 +00:00
|
|
|
// _before_ including <windows.h>
|
2007-03-19 14:45:38 +00:00
|
|
|
#include "wx/chartype.h"
|
2000-07-15 19:51:35 +00:00
|
|
|
|
1999-08-02 21:31:09 +00:00
|
|
|
// include standard Windows headers
|
2012-12-28 16:03:03 +00:00
|
|
|
#if defined(__WINDOWS__)
|
2003-07-15 18:52:32 +00:00
|
|
|
#include "wx/msw/wrapwin.h"
|
2012-12-28 16:03:03 +00:00
|
|
|
#include "wx/msw/private.h"
|
|
|
|
#endif
|
|
|
|
#if defined(__WXMSW__)
|
2006-03-12 13:00:35 +00:00
|
|
|
#include "wx/msw/wrapcctl.h"
|
|
|
|
#include "wx/msw/wrapcdlg.h"
|
|
|
|
#include "wx/msw/missing.h"
|
1998-12-10 10:57:29 +00:00
|
|
|
#endif
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2005-10-27 16:01:45 +00:00
|
|
|
// include <os2.h>
|
|
|
|
#ifdef __OS2__
|
|
|
|
# include "wx/os2/private.h"
|
|
|
|
#endif
|
|
|
|
|
1999-08-02 21:31:09 +00:00
|
|
|
// include the most common wx headers
|
1999-05-31 19:24:12 +00:00
|
|
|
#include "wx/wx.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
|
1999-08-13 19:24:13 +00:00
|
|
|
#endif // WX_PRECOMP
|