From 4f8993e19bda2011eb323705db1e91c7540854af Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Thu, 12 Aug 2021 11:35:07 +0300 Subject: [PATCH] Replace static_assert with #error --- src/core/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/config.h b/src/core/config.h index 782ad99f..063745b8 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -471,8 +471,8 @@ enum Config { #endif // VANILLA_DEFINES #if defined(AUDIO_OAL) && !defined(EXTERNAL_3D_SOUND) -static_assert(false, "AUDIO_OAL cannot work without EXTERNAL_3D_SOUND"); +#error AUDIO_OAL cannot work without EXTERNAL_3D_SOUND #endif #if defined(GTA_PS2) && defined(EXTERNAL_3D_SOUND) -static_assert(false, "EXTERNAL_3D_SOUND cannot work on PS2"); +#error EXTERNAL_3D_SOUND cannot work on PS2 #endif