From 3985fff6144753b7c6877d10e692c86bc925535e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= Date: Sun, 14 Sep 2025 07:41:20 +0200 Subject: [PATCH] Don't check __cplusplus when defining AMXAPI with GCC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit e0cba25c92 ("Prepare for release: fix issues found in regression testing, fix issues found by static analysis.") mistakenly disabled exporting symbols from libamx.so with GCC. Restore the previous behaviour. Signed-off-by: Zoltán Böszörményi --- amx/amx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amx/amx.h b/amx/amx.h index 09c9f35..46aa0e0 100644 --- a/amx/amx.h +++ b/amx/amx.h @@ -160,7 +160,7 @@ extern "C" { #define AMXAPI __stdcall #elif defined CDECL #define AMXAPI __cdecl - #elif defined GCC_HASCLASSVISIBILITY && defined __cplusplus + #elif defined GCC_HASCLASSVISIBILITY #define AMXAPI __attribute__((visibility("default"))) #else #define AMXAPI