From c0f5ddd436656ad947f189e7d4b0444e97e29736 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 30 Aug 2025 10:59:58 +0100 Subject: [PATCH] Allow ARCH_STRING to be undefined --- code/qcommon/q_platform.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index fbdb7b7a..ec203f57 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -336,13 +336,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA //=========================================================================== -//catch missing defines in above blocks -#if !defined( OS_STRING ) +// Catch missing defines in above blocks + +#ifndef OS_STRING #error "Operating system not supported" #endif -#if !defined( ARCH_STRING ) -#error "Architecture not supported" +#ifndef ARCH_STRING +// ARCH_STRING is (mostly) only used for informational purposes, so we allow +// it to be undefined so that more diverse architectures may be compiled +#define ARCH_STRING "unknown" #endif #ifndef ID_INLINE