#ifndef MLTPP_CONFIG_H_
#define MLTPP_CONFIG_H_
-#ifdef WIN32
+#if defined(WIN32)
#ifdef MLTPP_EXPORTS
#define MLTPP_DECLSPEC __declspec( dllexport )
#else
#define MLTPP_DECLSPEC __declspec( dllimport )
#endif
#else
- #define MLTPP_DECLSPEC
+ #if __GNUC__ >= 4
+ #define MLTPP_DECLSPEC __attribute__ ((visibility ("default")))
+ #else
+ #define MLTPP_DECLSPEC
+ #endif
#endif
#endif