Skip to content

Commit c250b23

Browse files
committed
Setup to be able to build the linux app
1 parent 7cd31fa commit c250b23

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/app/main.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
#ifdef _WIN32 // Will only build the Windows version for Windows devices.
1+
#ifdef _WIN32
22
#include <windows.h>
33
extern int RunWindowsApp ( );
44

5-
// Windows expects a WinMain as the application entry point so it doesn't attempt to run it through the terminal.
65
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
7-
return RunWindowsApp(); // Call the main start function from WinApp.cpp.
6+
return RunWindowsApp();
87
}
98

10-
#else // For other operating systems just return 0 as they haven't been implemented yet.
9+
#else
10+
11+
extern int RunLinuxApp ( );
1112

1213
int main ( ) {
13-
return linux_main();
14+
return RunLinuxApp();
1415
}
1516
#endif

0 commit comments

Comments
 (0)