]> git.saurik.com Git - wxWidgets.git/commitdiff
correction for Mac OS X (wxEntry has a specific prototype for Mac?)
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Sat, 7 Apr 2001 14:42:25 +0000 (14:42 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Sat, 7 Apr 2001 14:42:25 +0000 (14:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/app.h

index d1825f18a6afd0c8e44c722c782cddd15ec633da..46bde888f197d014c8f3215b11b5a482fbb5e479 100644 (file)
@@ -372,10 +372,15 @@ public:
 // be in your main program (e.g. hello.cpp). Now IMPLEMENT_APP should add this
 // code if required.
 
-#if !wxUSE_GUI || defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXPM__) || (defined(__WXMAC__) && defined(__UNIX__))
+#if !wxUSE_GUI || defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXPM__)
     #define IMPLEMENT_WXWIN_MAIN \
         extern int wxEntry( int argc, char *argv[] ); \
         int main(int argc, char *argv[]) { return wxEntry(argc, argv); }
+#elif defined(__WXMAC__) && defined(__UNIX__)
+       // wxMac seems to have a specific wxEntry prototype
+    #define IMPLEMENT_WXWIN_MAIN \
+        extern int wxEntry( int argc, char *argv[], bool enterLoop = 1 ); \
+        int main(int argc, char *argv[]) { return wxEntry(argc, argv); }
 #elif defined(__WXMSW__) && defined(WXUSINGDLL)
     // NT defines APIENTRY, 3.x not
     #if !defined(WXAPIENTRY)