summaryrefslogtreecommitdiff
path: root/include/uriparser/UriBase.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2022-10-30 19:35:00 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2022-10-30 19:35:00 +0100
commit3033986433a2a79a1578d6d424f89e439e0444ef (patch)
tree1f9a12bfb94f12479d303df186c02fd7236d9b18 /include/uriparser/UriBase.h
parentfda4a6a8635254361196b0497803b7d01514203e (diff)
parent0feeaa712b06f955dc7b721c81d4133732917cad (diff)
Merge branch 'release/debian/0.9.7+dfsg-1'debian/0.9.7+dfsg-1
Diffstat (limited to 'include/uriparser/UriBase.h')
-rw-r--r--include/uriparser/UriBase.h28
1 files changed, 12 insertions, 16 deletions
diff --git a/include/uriparser/UriBase.h b/include/uriparser/UriBase.h
index 089c2c6..5216b1d 100644
--- a/include/uriparser/UriBase.h
+++ b/include/uriparser/UriBase.h
@@ -55,7 +55,7 @@
/* Version */
#define URI_VER_MAJOR 0
#define URI_VER_MINOR 9
-#define URI_VER_RELEASE 6
+#define URI_VER_RELEASE 7
#define URI_VER_SUFFIX_ANSI ""
#define URI_VER_SUFFIX_UNICODE URI_ANSI_TO_UNICODE(URI_VER_SUFFIX_ANSI)
@@ -98,23 +98,19 @@
/* Import/export decorator */
-#if defined(URI_STATIC_BUILD)
-# define URI_PUBLIC
+#if defined(_MSC_VER)
+# if defined(URI_STATIC_BUILD)
+# define URI_PUBLIC
+# elif defined(URI_LIBRARY_BUILD)
+# define URI_PUBLIC __declspec(dllexport)
+# else
+# define URI_PUBLIC __declspec(dllimport)
+# endif
#else
-# if defined(URI_LIBRARY_BUILD)
-# if defined(_MSC_VER)
-# define URI_PUBLIC __declspec(dllexport)
-# elif defined(URI_VISIBILITY)
-# define URI_PUBLIC __attribute__ ((visibility("default")))
-# else
-# define URI_PUBLIC
-# endif
+# if ! defined(URI_LIBRARY_BUILD) || ! defined(URI_VISIBILITY)
+# define URI_PUBLIC
# else
-# if defined(_MSC_VER)
-# define URI_PUBLIC __declspec(dllimport)
-# else
-# define URI_PUBLIC
-# endif
+# define URI_PUBLIC __attribute__ ((visibility("default")))
# endif
#endif