From 46111484e2c5b611a15a77e6142c59465bcfd643 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Sep 2022 09:02:07 -0400 Subject: Fix accidentally exposed internal zix symbols --- src/zix/common.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/zix') diff --git a/src/zix/common.h b/src/zix/common.h index 46307b1..54f2303 100644 --- a/src/zix/common.h +++ b/src/zix/common.h @@ -12,14 +12,16 @@ */ /** @cond */ -#if defined(_WIN32) && !defined(ZIX_STATIC) && defined(ZIX_INTERNAL) -# define ZIX_API __declspec(dllexport) -#elif defined(_WIN32) && !defined(ZIX_STATIC) -# define ZIX_API __declspec(dllimport) -#elif defined(__GNUC__) -# define ZIX_API __attribute__((visibility("default"))) -#else -# define ZIX_API +#ifndef ZIX_API +# if defined(_WIN32) && !defined(ZIX_STATIC) && defined(ZIX_INTERNAL) +# define ZIX_API __declspec(dllexport) +# elif defined(_WIN32) && !defined(ZIX_STATIC) +# define ZIX_API __declspec(dllimport) +# elif defined(__GNUC__) +# define ZIX_API __attribute__((visibility("default"))) +# else +# define ZIX_API +# endif #endif #ifdef __GNUC__ -- cgit v1.2.1