App declarations modified; cursor was corrupt; needed to add PostScript-related variable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-05-21 19:39:05 +00:00
parent 10b959e372
commit 26a87b69a0
2 changed files with 15 additions and 4 deletions

View File

@@ -46,14 +46,22 @@ public:
} }
}; };
// Here's a macro you can use if your compiler
// really, really wants main() to be in your main program
// (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); }
#else
#define IMPLEMENT_WXWIN_MAIN
#endif
#define IMPLEMENT_APP(appname) \ #define IMPLEMENT_APP(appname) \
wxApp *wxCreateApp(void) { return new appname; } \ wxApp *wxCreateApp(void) { return new appname; } \
wxAppInitializer wxTheAppInitializer((wxAppInitializerFunction) wxCreateApp); \ wxAppInitializer wxTheAppInitializer((wxAppInitializerFunction) wxCreateApp); \
appname& wxGetApp(void) { return *(appname *)wxTheApp; } \ appname& wxGetApp(void) { return *(appname *)wxTheApp; } \
\ IMPLEMENT_WXWIN_MAIN
extern int wxEntry( int argc, char *argv[] ); \
int main(int argc, char *argv[]) { return wxEntry(argc, argv); }
#define DECLARE_APP(appname) \ #define DECLARE_APP(appname) \
extern appname& wxGetApp(void) ; extern appname& wxGetApp(void) ;

View File

@@ -152,6 +152,9 @@ const char *wxDoubleToStringStr = "%.2f";
const char *wxUserResourceStr = "TEXT"; const char *wxUserResourceStr = "TEXT";
#endif #endif
#if USE_POSTSCRIPT
wxPrintPaperDatabase* wxThePrintPaperDatabase = NULL;
#endif
#if USE_SHARED_LIBRARY #if USE_SHARED_LIBRARY
/* /*