From 2ba721aa6ca44ee826dfb5c9e16599aaf9e74908 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 29 Jun 2003 00:32:06 +0000 Subject: [PATCH] fix for compiling in wxUSE_GUI == 0 mode git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/private.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/wx/mac/private.h b/include/wx/mac/private.h index 2f2c4c6345..5ebbdf1857 100644 --- a/include/wx/mac/private.h +++ b/include/wx/mac/private.h @@ -33,6 +33,8 @@ #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/" #endif +#if wxUSE_GUI + #include "wx/window.h" class wxMacPortStateHelper @@ -107,6 +109,8 @@ private: // app.h bool wxMacConvertEventToRecord( EventRef event , EventRecord *rec) ; +#endif // wxUSE_GUI + // filefn.h WXDLLEXPORT wxString wxMacFSSpec2MacFilename( const FSSpec *spec ) ; WXDLLEXPORT void wxMacFilename2FSSpec( const char *path , FSSpec *spec ) ; @@ -124,6 +128,8 @@ WXDLLEXPORT wxString wxMacFindFolder(short vRefNum, OSType folderType, Boolean createFolder); +#if wxUSE_GUI + GWorldPtr wxMacCreateGWorld( int width , int height , int depth ) ; void wxMacDestroyGWorld( GWorldPtr gw ) ; PicHandle wxMacCreatePict( GWorldPtr gw , GWorldPtr mask = NULL ) ; @@ -143,6 +149,8 @@ void wxMacCreateBitmapButton( ControlButtonContentInfo*info , const wxBitmap& bi #define MAC_WXPOINTPTR(a) ((Point*)a) #define MAC_WXHMENU(a) ((MenuHandle)a) +#endif // wxUSE_GUI + //--------------------------------------------------------------------------- // wxMac string conversions //--------------------------------------------------------------------------- @@ -293,7 +301,7 @@ inline CFStringRef wxMacStringToCFString( const wxString &str ) #endif //TARGET_CARBON -#endif +#endif // 0 #endif // _WX_PRIVATE_H_ -- 2.45.2