From f9ab4e00fe991b9b8e625e161990540a7dc0092e Mon Sep 17 00:00:00 2001 From: eres-j Date: Sat, 3 Oct 2026 18:18:18 +0300 Subject: [PATCH] Fix IsDebuggerPresent declaration for Windows amalgamated build (#440) --- src/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index 0429da3..584a178 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -84,7 +84,7 @@ extern "C" __declspec(dllimport) unsigned int __stdcall SetErrorMode(unsigned in #elif BX_PLATFORM_WINDOWS \ || BX_PLATFORM_WINRT \ || BX_PLATFORM_XBOXONE -extern "C" __declspec(dllimport) bool __stdcall IsDebuggerPresent(); +extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent(); extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char* _str); extern "C" __declspec(dllimport) void* __stdcall GetStdHandle(unsigned long _stdHandle); extern "C" __declspec(dllimport) int __stdcall WriteFile(void* _file, const void* _buffer, unsigned long _sizeInBytes, unsigned long* _outNumberOfBytesWritten, struct _OVERLAPPED* _overlapped);