I already have this but I sense I'm missing something so I'd like to be pointed to a proper article/document on this sorta thing.
Code:#if defined( __GNUC__ ) || defined( __GNUP__ ) #define PP_ATTR( TYPE ) __attribute__( TYPE ) #ifndef _PRAGMA #define _PRAGMA( COMMAND ) _Pragma( #COMMAND ) #endif #else #define PP_ATTR( TYPE ) #endif #ifdef _WIN32 #define PP_DECLSPEC( TYPE ) __declspec( TYPE ) #define PP_LIB_EXP __declspec( dllexport ) #define PP_LIB_IMP __declspec( dllimport ) #else #define PP_DECLSPEC( TYPE ) #define PP_LIB_EXP PP_ATTR((__visibility__("default"))) #define PP_LIB_IMP #endif