Insure consistent definition of wxAppInitializerFunction for wxBase/MSW.

(previously, you could end up with different ones depending on include
         order, now platform.h is always (implicitly) included first, so
         __WXMSW__ is guaranteed to be defined even in wxBase/MSW builds.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2003-02-14 17:25:45 +00:00
parent cd8b84f98e
commit de274a5cbb

View File

@@ -17,22 +17,6 @@
#pragma interface "appbase.h"
#endif
// ----------------------------------------------------------------------------
// typedefs
// ----------------------------------------------------------------------------
#if (defined(__WXMSW__) && !defined(__WXMICROWIN__)) || defined (__WXPM__)
class WXDLLEXPORT wxApp;
typedef wxApp* (*wxAppInitializerFunction)();
#else
// returning wxApp* won't work with gcc
#include "wx/object.h"
typedef wxObject* (*wxAppInitializerFunction)();
#endif
class WXDLLEXPORT wxCmdLineParser;
// ----------------------------------------------------------------------------
// headers we have to include here
// ----------------------------------------------------------------------------
@@ -49,6 +33,25 @@ class WXDLLEXPORT wxCmdLineParser;
#include "wx/build.h"
// ----------------------------------------------------------------------------
// typedefs
// ----------------------------------------------------------------------------
// Do includes first to insure that even wxBase consistently uses
// the wxMSW case for defining wxAppInitializerFunction.
// (otherwise, __WXMSW__ will not yet be set, if app.h is the
// first file to be included).
#if (defined(__WXMSW__) && !defined(__WXMICROWIN__)) || defined (__WXPM__)
class WXDLLEXPORT wxApp;
typedef wxApp* (*wxAppInitializerFunction)();
#else
// returning wxApp* won't work with gcc
#include "wx/object.h"
typedef wxObject* (*wxAppInitializerFunction)();
#endif
class WXDLLEXPORT wxCmdLineParser;
class WXDLLEXPORT wxLog;
class WXDLLEXPORT wxMessageOutput;