From 60729b5ccc31f0d7167f0b97254b846e0741881b Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Sat, 13 Jan 2018 11:18:05 +0200 Subject: [PATCH] Ifdef for non-GUI app build (for debug only) --- client/sources/main_exe.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/sources/main_exe.c b/client/sources/main_exe.c index 83e4a9df..0d2b96ca 100644 --- a/client/sources/main_exe.c +++ b/client/sources/main_exe.c @@ -11,6 +11,7 @@ void on_exit_session(void); static BOOL on_exit_session_called = FALSE; +#ifdef HAVE_WINDOW LRESULT CALLBACK WinProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { @@ -117,3 +118,9 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, return 0; } +#else +int main() +{ + mainThread(NULL); +} +#endif