Ifdef for non-GUI app build (for debug only)

This commit is contained in:
Oleksii Shevchuk 2018-01-13 11:18:05 +02:00
parent d61d94de47
commit 60729b5ccc
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,7 @@ void on_exit_session(void);
static BOOL on_exit_session_called = FALSE; static BOOL on_exit_session_called = FALSE;
#ifdef HAVE_WINDOW
LRESULT CALLBACK WinProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) LRESULT CALLBACK WinProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{ {
switch (msg) { switch (msg) {
@ -117,3 +118,9 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
return 0; return 0;
} }
#else
int main()
{
mainThread(NULL);
}
#endif