X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/824e935add7ce89702fba506e4aa4609f9775483..dd1eaa89dd33ca69086b8a4f3f350d36f8a922f0:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index 8d11a5aeb4..c4a3d4ba43 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -12,22 +12,22 @@ #ifndef __APPH_BASE__ #define __APPH_BASE__ -#ifndef __GTK__ +#ifndef __WXGTK__ class WXDLLEXPORT wxApp; typedef wxApp* (*wxAppInitializerFunction) (void); #endif #include "wx/object.h" -#ifdef __GTK__ +#ifdef __WXGTK__ typedef wxObject* (*wxAppInitializerFunction) (void); // returning wxApp* won't work with gcc #endif -#if defined(__WINDOWS__) +#if defined(__WXMSW__) #include "wx/msw/app.h" -#elif defined(__MOTIF__) +#elif defined(__WXMOTIF__) #include "wx/xt/app.h" -#elif defined(__GTK__) +#elif defined(__WXGTK__) #include "wx/gtk/app.h" #endif @@ -51,8 +51,10 @@ public: // (e.g. hello.cpp). // Now IMPLEMENT_APP should add this code if required. -#if defined(AIX) || defined(AIX4) /* || defined(____HPUX__) */ -#define IMPLEMENT_WXWIN_MAIN int main(int argc, char *argv[]) { return wxEntry(argc, argv); } +#if defined(__AIX__) || defined(__HPUX__) +#define IMPLEMENT_WXWIN_MAIN \ +extern int wxEntry( int argc, char *argv[] ); \ +int main(int argc, char *argv[]) { return wxEntry(argc, argv); } #else #define IMPLEMENT_WXWIN_MAIN #endif