diff --git a/uppsrc/Core/App.h b/uppsrc/Core/App.h index 2dd33d3..582381c 100644 Index: uppsrc/Core/App.h =================================================================== --- uppsrc/Core/App.h +++ uppsrc/Core/App.h @@ -38,7 +38,7 @@ void AppExit__(); void AppInit__(int argc, const char **argv); void AppInitEnvironment__(); -#define CONSOLE_APP_MAIN \ +#define APP_MAIN \ void ConsoleMainFn_(); \ \ int main(int argc, char *argv[]) { \ @@ -57,7 +57,7 @@ void ConsoleMainFn_() void AppInit__(int argc, const char **argv, const char **envptr); -#define CONSOLE_APP_MAIN \ +#define APP_MAIN \ void ConsoleMainFn_(); \ \ int main(int argc, const char **argv, const char **envptr) { \ @@ -72,6 +72,9 @@ void ConsoleMainFn_() #endif +//CONSOLE_APP_MAIN depricated, use APP_MAIN +#define CONSOLE_APP_MAIN APP_MAIN + String GetDataFile(const char *filename); void LaunchWebBrowser(const String& url); diff --git a/uppsrc/CtrlCore/CtrlCore.h b/uppsrc/CtrlCore/CtrlCore.h index 07d3c81..c0dcfc4 100644 Index: uppsrc/CtrlCore/CtrlCore.h =================================================================== --- uppsrc/CtrlCore/CtrlCore.h +++ uppsrc/CtrlCore/CtrlCore.h @@ -1563,4 +1563,7 @@ RichText ParseRTF(const char *rtf); END_UPP_NAMESPACE +//GUI_APP_MAIN depricated, use APP_MAIN +#define GUI_APP_MAIN APP_MAIN + #endif diff --git a/uppsrc/CtrlCore/Win32GuiA.h b/uppsrc/CtrlCore/Win32GuiA.h index 3f2d163..6684920 100644 Index: uppsrc/CtrlCore/Win32GuiA.h =================================================================== --- uppsrc/CtrlCore/Win32GuiA.h +++ uppsrc/CtrlCore/Win32GuiA.h @@ -13,7 +13,9 @@ Vector SplitCmdLine__(const char *cmd); #ifdef PLATFORM_WINCE -#define GUI_APP_MAIN \ +#ifdef flagGUI +#undef APP_MAIN +#define APP_MAIN \ void GuiMainFn_();\ \ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR lpCmdLine, int nCmdShow) \ @@ -32,9 +34,12 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR lpCmdLine, int nCmdS \ void GuiMainFn_() +#endif #else -#define GUI_APP_MAIN \ +#ifdef flagGUI +#undef APP_MAIN +#define APP_MAIN \ void GuiMainFn_();\ \ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow) \ @@ -53,6 +58,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdSh \ void GuiMainFn_() +#endif + #define DLL_APP_MAIN \ void _DllMainAppInit(); \ \ diff --git a/uppsrc/CtrlCore/X11GuiA.h b/uppsrc/CtrlCore/X11GuiA.h index 69a20b3..63adb5e 100644 Index: uppsrc/CtrlCore/X11GuiA.h =================================================================== --- uppsrc/CtrlCore/X11GuiA.h +++ uppsrc/CtrlCore/X11GuiA.h @@ -7,8 +7,9 @@ protected: bool caret; }; - -#define GUI_APP_MAIN \ +#ifdef flagGUI +#undef APP_MAIN +#define APP_MAIN \ void GuiMainFn_(); \ \ int main(int argc, const char **argv, const char **envptr) { \ @@ -25,6 +26,8 @@ int main(int argc, const char **argv, const char **envptr) { \ \ void GuiMainFn_() +#endif + class DHCtrl : public Ctrl { int isError; bool isMapped;