Skip to content

Commit

Permalink
Fix static debug windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk authored and joshtynjala committed Feb 10, 2025
1 parent f5ccc3d commit d1db9e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/cpp/static/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdio.h>

#if defined(HX_WINDOWS) && !defined(HXCPP_DEBUG)
#if defined(HX_WINDOWS) && !defined(HXCPP_DEBUGGER)
#include <windows.h>
#endif

Expand All @@ -14,7 +14,7 @@ ::foreach ndlls::::if (registerStatics)::
extern "C" int ::nameSafe::_register_prims ();::end::::end::


#if defined(HX_WINDOWS) && !defined(HXCPP_DEBUG)
#if defined(HX_WINDOWS) && !defined(HXCPP_DEBUGGER)
int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
#else
extern "C" int main(int argc, char *argv[]) {
Expand Down

0 comments on commit d1db9e8

Please sign in to comment.