From 20eb6a9bbbf4e93bebbe95452c983ffff21c35ae Mon Sep 17 00:00:00 2001 From: redcode Date: Wed, 13 Nov 2024 01:49:19 +0100 Subject: [PATCH] =?UTF-8?q?`Z80=5FWITH=5FWINDOWS=5FDLL=5FMAIN=5FCRT=5FSTAR?= =?UTF-8?q?TUP`=20=E2=86=92=20`Z80=5FWITH=5FDLL=5FMAIN=5FCRT=5FSTARTUP`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- sources/Z80.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1afca94..9004842 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,7 +202,7 @@ else() if(${PROJECT_NAME}_NOSTDLIB_FLAGS STREQUAL "Auto") if(MSVC) - target_compile_definitions(${PROJECT_NAME} PRIVATE Z80_WITH_WINDOWS_DLL_MAIN_CRT_STARTUP) + target_compile_definitions(${PROJECT_NAME} PRIVATE Z80_WITH_DLL_MAIN_CRT_STARTUP) target_link_options(${PROJECT_NAME} PRIVATE "/NODEFAULTLIB") elseif(APPLE) if(CMAKE_C_COMPILER_ID MATCHES "^(AppleClang|Clang|GNU)$") diff --git a/sources/Z80.c b/sources/Z80.c index 7187694..69542d1 100644 --- a/sources/Z80.c +++ b/sources/Z80.c @@ -2932,7 +2932,7 @@ Z80_API zusize z80_run(Z80 *self, zusize cycles) } -#ifdef Z80_WITH_WINDOWS_DLL_MAIN_CRT_STARTUP +#ifdef Z80_WITH_DLL_MAIN_CRT_STARTUP int Z_MICROSOFT_STD_CALL _DllMainCRTStartup(void *hDllHandle, unsigned long dwReason, void *lpReserved) {return 1;} #endif