diff options
author | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-04-26 17:58:14 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-04-26 17:58:14 +0200 |
commit | fddb419b78bc873fb6fb9e8dc49c28e5ac5113f1 (patch) | |
tree | 3009ac597dd206aa4bfaa50725ed6e7542119877 /include/uriparser/UriBase.h | |
parent | 4c6be44409a51e938aa1c9e4d920348d5317a3d2 (diff) | |
parent | 5444b1728ba7cfc55e85fd3022b6e88c9441327c (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'include/uriparser/UriBase.h')
-rw-r--r-- | include/uriparser/UriBase.h | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/include/uriparser/UriBase.h b/include/uriparser/UriBase.h index 32e2135..ea7102d 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 1 +#define URI_VER_RELEASE 2 #define URI_VER_SUFFIX_ANSI "" #define URI_VER_SUFFIX_UNICODE URI_ANSI_TO_UNICODE(URI_VER_SUFFIX_ANSI) @@ -97,6 +97,29 @@ +/* Import/export decorator */ +#if defined(URI_STATIC_BUILD) +# define URI_PUBLIC +#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 +# else +# if defined(_MSC_VER) +# define URI_PUBLIC __declspec(dllimport) +# else +# define URI_PUBLIC +# endif +# endif +#endif + + + typedef int UriBool; /**< Boolean type */ #define URI_TRUE 1 @@ -283,7 +306,7 @@ typedef enum UriResolutionOptionsEnum { * @see UriMemoryManager * @since 0.9.0 */ -int uriCompleteMemoryManager(UriMemoryManager * memory, +URI_PUBLIC int uriCompleteMemoryManager(UriMemoryManager * memory, UriMemoryManager * backend); @@ -302,7 +325,7 @@ int uriCompleteMemoryManager(UriMemoryManager * memory, * @see UriMemoryManager * @since 0.9.0 */ -void * uriEmulateCalloc(UriMemoryManager * memory, +URI_PUBLIC void * uriEmulateCalloc(UriMemoryManager * memory, size_t nmemb, size_t size); @@ -322,7 +345,7 @@ void * uriEmulateCalloc(UriMemoryManager * memory, * @see UriMemoryManager * @since 0.9.0 */ -void * uriEmulateReallocarray(UriMemoryManager * memory, +URI_PUBLIC void * uriEmulateReallocarray(UriMemoryManager * memory, void * ptr, size_t nmemb, size_t size); @@ -347,7 +370,7 @@ void * uriEmulateReallocarray(UriMemoryManager * memory, * @see UriMemoryManager * @since 0.9.0 */ -int uriTestMemoryManager(UriMemoryManager * memory); +URI_PUBLIC int uriTestMemoryManager(UriMemoryManager * memory); |