1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wxprec.h
|
|
|
|
// Purpose: Includes the appropriate files for precompiled headers
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
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
|
2004-06-23 15:01:33 +00:00
|
|
|
#if ( defined(__WXMSW__) && \
|
|
|
|
( defined(__BORLANDC__) || \
|
|
|
|
defined(__VISUALC__) || \
|
|
|
|
defined(__DIGITALMARS__) || \
|
|
|
|
defined(__WATCOMC__) ) ) || \
|
|
|
|
defined(__VISAGECPP__) || \
|
2004-09-10 13:24:20 +00:00
|
|
|
defined(__MWERKS__)
|
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
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
// include <wx/wxchar.h> first to ensure that UNICODE macro is correctly set
|
|
|
|
// _before_ including <windows.h>
|
|
|
|
#include "wx/wxchar.h"
|
|
|
|
|
1999-08-02 21:31:09 +00:00
|
|
|
// include standard Windows headers
|
2004-09-10 13:24:20 +00:00
|
|
|
#if defined(__WXMSW__)
|
2003-07-15 18:52:32 +00:00
|
|
|
#include "wx/msw/wrapwin.h"
|
1998-12-10 10:57:29 +00:00
|
|
|
#endif
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2005-07-01 19:36:58 +00:00
|
|
|
// include all PalmOS headers at once
|
|
|
|
#ifdef __WXPALMOS__
|
|
|
|
# include <PalmOS.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
|