From 2f0a55007f9dda3371b7aa42b54b4786740ac0c0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 2 Jan 2021 13:23:00 +0100 Subject: Use SERD_STATIC instead of SERD_SHARED to control visibility For consistency, this seems to be the most common convention. --- include/serd/serd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/serd') diff --git a/include/serd/serd.h b/include/serd/serd.h index 32a60f29..88cd659a 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -25,11 +25,11 @@ #include #include -#if defined(SERD_SHARED) && defined(SERD_INTERNAL) && defined(_WIN32) +#if defined(_WIN32) && !defined(SERD_STATIC) && defined(SERD_INTERNAL) # define SERD_API __declspec(dllexport) -#elif defined(SERD_SHARED) && defined(_WIN32) +#elif defined(_WIN32) && !defined(SERD_STATIC) # define SERD_API __declspec(dllimport) -#elif defined(SERD_SHARED) && defined(__GNUC__) +#elif defined(__GNUC__) # define SERD_API __attribute__((visibility("default"))) #else # define SERD_API -- cgit v1.2.1