Fix compilation errors when using CMake to add a project through add_subdirectory.

This commit is contained in:
ShiXiaodi
2023-10-17 15:19:49 +08:00
parent 2287b9ab0a
commit 7080918350
6 changed files with 34 additions and 23 deletions

View File

@ -372,6 +372,8 @@ extern "C" {
# else
# define ZINT_EXTERN extern
# endif
#elif defined(__GNUC__) && __GNUC__ >= 4
# define ZINT_EXTERN extern __attribute__((visibility("default")))
#else
# define ZINT_EXTERN extern
#endif