Skip to content

Commit 96e9b86

Browse files
authored
Allow manually defining symbol visibility in static builds. (#313)
1 parent 53f0bac commit 96e9b86

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

utf8proc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ typedef bool utf8proc_bool;
121121
#include <limits.h>
122122

123123
#ifdef UTF8PROC_STATIC
124-
# define UTF8PROC_DLLEXPORT
124+
# ifndef UTF8PROC_DLLEXPORT
125+
# define UTF8PROC_DLLEXPORT
126+
# endif
125127
#else
126128
# ifdef _WIN32
127129
# ifdef UTF8PROC_EXPORTS

0 commit comments

Comments
 (0)