#ifndef __CyclopsCommon_h_ #define __CyclopsCommon_h_ #if defined (_MSC_VER) // windows #if defined(CYCLOPS_EXPORT) #define CYCLOPS_DLLSPEC __declspec(dllexport) // Use .def file for hiding API names #elif defined(CYCLOPS_LIB) #define CYCLOPS_DLLSPEC #else #define CYCLOPS_DLLSPEC __declspec(dllimport) #endif #else // gcc #if defined(CYCLOPS_EXPORT) #define CYCLOPS_DLLSPEC __attribute__(dllexport) #elif defined(CYCLOPS_LIB) #define CYCLOPS_DLLSPEC #else #define CYCLOPS_DLLSPEC __attribute__(dllimport) #endif #endif #endif // CyclopsCommon_h_