move wx11 and (the rest of) wxMGL specific checks into /chkconf.h file

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2006-08-01 09:01:01 +00:00
parent 0e798c8651
commit 050242339c
4 changed files with 32 additions and 14 deletions

View File

@@ -1403,6 +1403,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
wx/x11/app.h wx/x11/app.h
wx/x11/bitmap.h wx/x11/bitmap.h
wx/x11/brush.h wx/x11/brush.h
wx/x11/chkconf.h
wx/x11/clipbrd.h wx/x11/clipbrd.h
wx/x11/colour.h wx/x11/colour.h
wx/x11/cursor.h wx/x11/cursor.h

View File

@@ -29,6 +29,8 @@
# include "wx/mgl/chkconf.h" # include "wx/mgl/chkconf.h"
#elif defined(__WXMOTIF__) #elif defined(__WXMOTIF__)
# include "wx/motif/chkconf.h" # include "wx/motif/chkconf.h"
#elif defined(__WXX11__)
# include "wx/x11/chkconf.h"
#endif #endif
/* /*
@@ -1281,20 +1283,6 @@
# endif # endif
#endif /* wxGTK && !wxUniv */ #endif /* wxGTK && !wxUniv */
/* wxMGL-specific dependencies */
#ifdef __WXMGL__
# if !wxUSE_PALETTE
# error "wxMGL requires wxUSE_PALETTE=1"
# endif
#endif /* wxMGL */
/* wxX11-specific dependencies */
#ifdef __WXX11__
# if !wxUSE_PALETTE
# error "wxX11 requires wxUSE_PALETTE=1"
# endif
#endif /* wxX11 */
/* Hopefully we can emulate these dialogs in due course */ /* Hopefully we can emulate these dialogs in due course */
#if defined(__SMARTPHONE__) && defined(__WXWINCE__) #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
# ifdef wxUSE_COLOURDLG # ifdef wxUSE_COLOURDLG

View File

@@ -14,6 +14,12 @@
#ifndef _WX_MGL_CHKCONF_H_ #ifndef _WX_MGL_CHKCONF_H_
#define _WX_MGL_CHKCONF_H_ #define _WX_MGL_CHKCONF_H_
/* wxPalette is always needed */
#if !wxUSE_PALETTE
# error "wxMGL requires wxUSE_PALETTE=1"
#endif
/* /*
wxDisplay is not implemented for OS/2, use stub common version instead. wxDisplay is not implemented for OS/2, use stub common version instead.
*/ */

23
include/wx/x11/chkconf.h Normal file
View File

@@ -0,0 +1,23 @@
/*
* Name: wx/x11/chkconf.h
* Purpose: Compiler-specific configuration checking
* Author: Julian Smart
* Modified by:
* Created: 01/02/97
* RCS-ID: $Id$
* Copyright: (c) Julian Smart
* Licence: wxWindows licence
*/
/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
#ifndef _WX_X11_CHKCONF_H_
#define _WX_X11_CHKCONF_H_
/* wxPalette is always needed */
#if !wxUSE_PALETTE
# error "wxX11 requires wxUSE_PALETTE=1"
#endif
#endif /* _WX_X11_CHKCONF_H_ */