| ... | @@ -30,8 +30,6 @@ | ... | @@ -30,8 +30,6 @@ |
| 30 | | 30 | |
| 31 | #else | 31 | #else |
| 32 | | 32 | |
| 33 | #include <signal.h> | | |
| 34 | | | |
| 35 | #define ATTRIBUTE_COLD __attribute__((cold)) | 33 | #define ATTRIBUTE_COLD __attribute__((cold)) |
| 36 | #define ATTRIBUTE_PRINTF(a, b) __attribute__((format(printf, a, b))) | 34 | #define ATTRIBUTE_PRINTF(a, b) __attribute__((format(printf, a, b))) |
| 37 | #define ATTRIBUTE_RETURNS_NOALIAS __attribute__((__malloc__)) | 35 | #define ATTRIBUTE_RETURNS_NOALIAS __attribute__((__malloc__)) |
| ... | @@ -40,7 +38,12 @@ | ... | @@ -40,7 +38,12 @@ |
| 40 | | 38 | |
| 41 | #if defined(__MINGW32__) || defined(__MINGW64__) | 39 | #if defined(__MINGW32__) || defined(__MINGW64__) |
| 42 | #define BREAKPOINT __debugbreak() | 40 | #define BREAKPOINT __debugbreak() |
| | 41 | #elif defined(__clang__) |
| | 42 | #define BREAKPOINT __builtin_debugtrap() |
| | 43 | #elif defined(__GNUC__) |
| | 44 | #define BREAKPOINT __builtin_trap() |
| 43 | #else | 45 | #else |
| | 46 | #include <signal.h> |
| 44 | #define BREAKPOINT raise(SIGTRAP) | 47 | #define BREAKPOINT raise(SIGTRAP) |
| 45 | #endif | 48 | #endif |
| 46 | | 49 | |