From b890134aacc8ea696742d513ffbda1fc4008a754 Mon Sep 17 00:00:00 2001 From: DevilMaster Date: Sat, 29 Aug 2026 06:32:08 +0200 Subject: [PATCH] Two fixes to allow the project to compile on Raspberry Pi (#310) * Add files via upload * Add files via upload * Update q_platform.h * Update debugging.h --------- Co-authored-by: Garux --- libs/debugging/debugging.h | 2 +- tools/mbspc/qcommon/q_platform.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/debugging/debugging.h b/libs/debugging/debugging.h index 7b220d2a..8830236e 100644 --- a/libs/debugging/debugging.h +++ b/libs/debugging/debugging.h @@ -38,7 +38,7 @@ #else #include -#define DEBUGGER_BREAKPOINT() raise( SIGTRAP ); +#define DEBUGGER_BREAKPOINT() ::raise( SIGTRAP ); // ::raise for Raspberry Pi #endif #define STR( x ) # x diff --git a/tools/mbspc/qcommon/q_platform.h b/tools/mbspc/qcommon/q_platform.h index d3b3b6b0..4df14360 100644 --- a/tools/mbspc/qcommon/q_platform.h +++ b/tools/mbspc/qcommon/q_platform.h @@ -208,6 +208,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define ARCH_STRING "mips" #elif defined __sh__ #define ARCH_STRING "sh" +#elif defined(__aarch64__) // for Raspberry Pi +#define ARCH_STRING "aarch64" #endif #if defined __x86_64__