--- include/orcus/env.hpp +++ include/orcus/env.hpp @@ -35,19 +35,13 @@ #else #define ORCUS_DLLPUBLIC __declspec(dllexport) #endif - #elif defined __ORCUS_STATIC_LIB + #else #define ORCUS_DLLPUBLIC - #else - #ifdef __GNUC__ - #define ORCUS_DLLPUBLIC __attribute__ ((dllimport)) - #else - #define ORCUS_DLLPUBLIC __declspec(dllimport) - #endif #endif #define ORCUS_DLLLOCAL #else #if __GNUC__ >= 4 - #define ORCUS_DLLPUBLIC __attribute__ ((visibility ("default"))) + #define ORCUS_DLLPUBLIC #define ORCUS_DLLLOCAL __attribute__ ((visibility ("hidden"))) #else #define ORCUS_DLLPUBLIC