diff --git a/src/util.hpp b/src/util.hpp index a408b811b7e5997145a36ef3c77c050db4145bf1..61a17fc07e73130b690022ddc299bfd6849b93c4 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -38,7 +38,11 @@ #define ATTRIBUTE_NORETURN __attribute__((noreturn)) #define ATTRIBUTE_MUST_USE __attribute__((warn_unused_result)) +#if defined(__MINGW32__) || defined(__MINGW64__) +#define BREAKPOINT __debugbreak() +#else #define BREAKPOINT raise(SIGTRAP) +#endif #endif