Patches for Windows/MSVC compatibility

main
Thor 1 year ago
parent f7ea903cc5
commit 9f9618c465
  1. 1
      .gitignore
  2. 1
      CMakeLists.txt
  3. 10
      src/synthapp.cpp

1
.gitignore vendored

@ -2,6 +2,7 @@ build/
.DS_Store
CMakeCache.txt
CMakeFiles/
Launch_main_*/
*.cmake
main
Makefile

@ -7,6 +7,7 @@ set(BUILD_SHARED_LIBS OFF)
if(WIN32)
option(PA_USE_ASIO "" ON)
option(PA_USE_WDMKS "" OFF)
option(PA_USE_WDMKS_DEVICE_INFO "" OFF)
endif()
add_subdirectory(lib/portaudio)
add_subdirectory(lib/portmidi)

@ -202,4 +202,12 @@ int SynthApp::OnExit() {
return 0;
}
wxIMPLEMENT_APP(SynthApp);
wxIMPLEMENT_APP(SynthApp);
#ifdef WIN32
int main(int argc, char** argv) {
HMODULE module = GetModuleHandle(NULL);
LPSTR lpCmdLine = (LPSTR) calloc(1, 1);
return WinMain(module, NULL, lpCmdLine, SW_SHOW);
}
#endif
Loading…
Cancel
Save