mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: guard __cdecl __debugbreak behind PDB_COMPILER_MSVC for Linux build
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,10 +11,14 @@ PDB_PUSH_WARNING_CLANG
|
|||||||
PDB_DISABLE_WARNING_CLANG("-Wgnu-zero-variadic-macro-arguments")
|
PDB_DISABLE_WARNING_CLANG("-Wgnu-zero-variadic-macro-arguments")
|
||||||
PDB_DISABLE_WARNING_CLANG("-Wreserved-identifier")
|
PDB_DISABLE_WARNING_CLANG("-Wreserved-identifier")
|
||||||
|
|
||||||
extern "C" void __cdecl __debugbreak(void);
|
|
||||||
|
|
||||||
#if PDB_COMPILER_MSVC
|
#if PDB_COMPILER_MSVC
|
||||||
|
extern "C" void __cdecl __debugbreak(void);
|
||||||
# pragma intrinsic(__debugbreak)
|
# pragma intrinsic(__debugbreak)
|
||||||
|
#elif defined(__has_builtin) && __has_builtin(__builtin_debugtrap)
|
||||||
|
# define __debugbreak() __builtin_debugtrap()
|
||||||
|
#else
|
||||||
|
# include <signal.h>
|
||||||
|
# define __debugbreak() raise(SIGTRAP)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user