From: Gilles Depeyrot Date: Sun, 18 Nov 2001 12:25:12 +0000 (+0000) Subject: corrections for compilation under Mac OS X X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ad05396006ee3655f079bd2a3c57ac0e3e7e8828 corrections for compilation under Mac OS X removed invalid '#pragma interface' in source files (instead of headers?) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/HelpGen/src/.cvsignore b/utils/HelpGen/src/.cvsignore new file mode 100644 index 0000000000..f581451dd3 --- /dev/null +++ b/utils/HelpGen/src/.cvsignore @@ -0,0 +1,5 @@ +HelpGenM*Data +*Classic?Debug* +*Classic?Release* +*Carbon?Debug* +*Carbon?Release* diff --git a/utils/HelpGen/src/HelpGenM5.mcp b/utils/HelpGen/src/HelpGenM5.mcp new file mode 100644 index 0000000000..0aba921292 Binary files /dev/null and b/utils/HelpGen/src/HelpGenM5.mcp differ diff --git a/utils/HelpGen/src/cjparser.cpp b/utils/HelpGen/src/cjparser.cpp index a623a28611..1d87c02449 100644 --- a/utils/HelpGen/src/cjparser.cpp +++ b/utils/HelpGen/src/cjparser.cpp @@ -10,8 +10,7 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation "acell.h" -#pragma interface +# pragma implementation "acell.h" #endif // For compilers that support precompilation, includes "wx/wx.h". diff --git a/utils/HelpGen/src/ifcontext.cpp b/utils/HelpGen/src/ifcontext.cpp index 3b2698a639..be08a59330 100644 --- a/utils/HelpGen/src/ifcontext.cpp +++ b/utils/HelpGen/src/ifcontext.cpp @@ -10,8 +10,7 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation "ifcontext.h" -#pragma interface +# pragma implementation "ifcontext.h" #endif // For compilers that support precompilation, includes "wx/wx.h". @@ -25,7 +24,9 @@ #include "wx/wx.h" #endif -#include +#ifdef HAVE_MALLOC_H +# include +#endif #include #include "ifcontext.h" diff --git a/utils/HelpGen/src/scriptbinder.cpp b/utils/HelpGen/src/scriptbinder.cpp index 5ef0e7b0bd..cfdc15fbaf 100644 --- a/utils/HelpGen/src/scriptbinder.cpp +++ b/utils/HelpGen/src/scriptbinder.cpp @@ -20,7 +20,9 @@ #include "wx/wx.h" #endif -#include +#ifdef HAVE_MALLOC_H +# include +#endif #include #include diff --git a/utils/HelpGen/src/sourcepainter.cpp b/utils/HelpGen/src/sourcepainter.cpp index 6814b5ffee..4876009358 100644 --- a/utils/HelpGen/src/sourcepainter.cpp +++ b/utils/HelpGen/src/sourcepainter.cpp @@ -21,12 +21,9 @@ #endif #if defined( wxUSE_TEMPLATE_STL ) - - #include +# include #else - - #include "wxstlac.h" - +# include "wxstlac.h" #endif #include "sourcepainter.h" diff --git a/utils/HelpGen/src/srcparser.cpp b/utils/HelpGen/src/srcparser.cpp index 81d84ed431..2875d44040 100644 --- a/utils/HelpGen/src/srcparser.cpp +++ b/utils/HelpGen/src/srcparser.cpp @@ -10,8 +10,7 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation "srcparser.h" -#pragma interface +# pragma implementation "srcparser.h" #endif // For compilers that support precompilation, includes "wx/wx.h". @@ -25,7 +24,9 @@ #include "wx/wx.h" #endif -#include +#ifdef HAVE_MALLOC_H +# include +#endif #include #include "srcparser.h" diff --git a/utils/HelpGen/src/wxstlac.h b/utils/HelpGen/src/wxstlac.h index 9f69f1f26d..f71ef3405d 100644 --- a/utils/HelpGen/src/wxstlac.h +++ b/utils/HelpGen/src/wxstlac.h @@ -17,7 +17,9 @@ #endif #include -#include +#if !defined(__WXMAC__) || defined(__DARWIN__) +# include +#endif #include #include #include @@ -599,15 +601,16 @@ public:\ #define ___WXSTL_COMMA , -#define __DEFINE_MAP(ARG_IS_UNIQUE, KEY_TYPE, VAL_TYPE, FUNCTOR ) __DEFINE_ASOC_CLASS( ARG_IS_UNIQUE,\ +#define __DEFINE_MAP(ARG_IS_UNIQUE, KEY_TYPE, VAL_TYPE, FUNCTOR ) \ +__DEFINE_ASOC_CLASS( ARG_IS_UNIQUE,\ FUNCTOR,\ __WXSTLMAP_##KEY_TYPE##VAL_TYPE##ARG_IS_UNIQUE, \ struct key_value_pair { KEY_TYPE first ; \ - VAL_TYPE second;\ - key_value_pair() {}\ - key_value_pair( const KEY_TYPE& key ___WXSTL_COMMA const VAL_TYPE& value ) \ - : first(key) ___WXSTL_COMMA second( value ) {} \ - } , \ + VAL_TYPE second;\ + key_value_pair() {}\ + key_value_pair( const KEY_TYPE& key ___WXSTL_COMMA const VAL_TYPE& value ) \ + : first(key) ___WXSTL_COMMA second( value ) {} \ + } , \ KEY_TYPE,\ VAL_TYPE,\ mData.first, mData.second, x.first, x.second, \ @@ -626,7 +629,8 @@ inline insert_result_iterator insert( const value_type& x )\ return result;\ } ) -#define __DEFINE_SET(ARG_IS_UNIQUE, KEY_TYPE, FUNCTOR ) __DEFINE_ASOC_CLASS( ARG_IS_UNIQUE,\ +#define __DEFINE_SET(ARG_IS_UNIQUE, KEY_TYPE, FUNCTOR ) \ +__DEFINE_ASOC_CLASS( ARG_IS_UNIQUE,\ FUNCTOR,\ __WXSTLSET_##TYPE##ARG_IS_UNIQUE, \ KEY_TYPE,\ diff --git a/utils/HelpGen/src/wxstllst.h b/utils/HelpGen/src/wxstllst.h index 5a1d1bc469..800fd5a91a 100644 --- a/utils/HelpGen/src/wxstllst.h +++ b/utils/HelpGen/src/wxstllst.h @@ -17,7 +17,9 @@ #endif #include -#include +#if !defined(__WXMAC__) || defined(__DARWIN__) +# include +#endif #include #include #include @@ -556,4 +558,4 @@ public:\ \ _WXSTL_LIST_##ELEMENT_CLASS, ELEMENT_CLASS ) -#endif \ No newline at end of file +#endif diff --git a/utils/HelpGen/src/wxstlvec.h b/utils/HelpGen/src/wxstlvec.h index 6658b07559..c7b2daf27c 100644 --- a/utils/HelpGen/src/wxstlvec.h +++ b/utils/HelpGen/src/wxstlvec.h @@ -19,7 +19,9 @@ #include #include // imports memmove() #include -#include +#if !defined(__WXMAC__) || defined(__DARWIN__) +# include +#endif #include #include