mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Export the INTERNAL functions
The testcommon library, which is outside of this link unit, is referencing the INTERNAL functions, so despite the name they need to be exported. The export code is copy&pasted from the ZINT_EXTERN definition which can't be reused over preprocessor limitations. We might just use ZINT_EXTERN instead though
This commit is contained in:
parent
00199c7ef5
commit
f471bb6e50
@ -59,9 +59,18 @@
|
|||||||
|
|
||||||
#if defined(__GNUC__) && !defined(_WIN32) && !defined(ZINT_TEST)
|
#if defined(__GNUC__) && !defined(_WIN32) && !defined(ZINT_TEST)
|
||||||
# define INTERNAL __attribute__ ((visibility ("hidden")))
|
# define INTERNAL __attribute__ ((visibility ("hidden")))
|
||||||
#else
|
#else /* despite the name, the test cases are referencing the INTERNAL functions, so they need to be exported */
|
||||||
|
# if defined(ZINT_TEST)
|
||||||
|
# if defined(DLL_EXPORT) || defined(PIC) || defined(_USRDLL)
|
||||||
|
# define INTERNAL __declspec(dllexport)
|
||||||
|
# elif defined(ZINT_DLL)
|
||||||
|
# define INTERNAL __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# if !defined(INTERNAL)
|
||||||
# define INTERNAL
|
# define INTERNAL
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(ZINT_TEST)
|
#if defined(ZINT_TEST)
|
||||||
#define STATIC_UNLESS_ZINT_TEST
|
#define STATIC_UNLESS_ZINT_TEST
|
||||||
|
Loading…
Reference in New Issue
Block a user