X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26a87b69a0686db5700ae66e17c64c1bfe14d557..d4a23feeb2bb0f497cb2ce41bc54b8cb5d0528fe:/include/wx/app.h?ds=sidebyside diff --git a/include/wx/app.h b/include/wx/app.h index 4b586b74ad..d454acf6fa 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -9,29 +9,34 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __APPH_BASE__ -#define __APPH_BASE__ +#ifndef _WX_APP_H_BASE_ +#define _WX_APP_H_BASE_ -#ifndef __GTK__ +#ifdef __WXMSW__ class WXDLLEXPORT wxApp; typedef wxApp* (*wxAppInitializerFunction) (void); #endif #include "wx/object.h" -#ifdef __GTK +#ifndef __WXMSW__ 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__) -#include "wx/xt/app.h" -#elif defined(__GTK__) +#elif defined(__WXMOTIF__) +#include "wx/motif/app.h" +#elif defined(__WXQT__) +#include "wx/qt/app.h" +#elif defined(__WXGTK__) #include "wx/gtk/app.h" +#elif defined(__WXMAC__) +#include "wx/mac/app.h" +#elif defined(__WXSTUBS__) +#include "wx/stubs/app.h" #endif - // Having a global instance of this class allows // wxApp to be aware of the app creator function. // wxApp can then call this function to create a new @@ -51,8 +56,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 @@ -68,4 +75,4 @@ public: #endif - // __APPH_BASE__ + // _WX_APP_H_BASE_