mopsolver_api_shared Last update: 16.07.2025 1#ifndef DYNARDO_MOPSOLVERAPI2_SHARED_H_ 2#define DYNARDO_MOPSOLVERAPI2_SHARED_H_ 3 4#if defined _WIN32 || defined __CYGWIN__ 5#define DYNARDO_DLPUBLIC_SHARED_EXPORT __declspec(dllexport) 6#define DYNARDO_DLPUBLIC_SHARED_IMPORT __declspec(dllimport) 7#else 8#if __GNUC__ >= 4 9#define DYNARDO_DLPUBLIC_SHARED_EXPORT __attribute__ ((visibility("default"))) 10#define DYNARDO_DLPUBLIC_SHARED_IMPORT 11#else 12#define DYNARDO_DLPUBLIC_SHARED_EXPORT 13#define DYNARDO_DLPUBLIC_SHARED_IMPORT 14#endif 15#endif 16 17#ifdef DYNARDO_MOPSOLVER_SHARED 18#ifdef DYNARDO_MOPSOLVER_BUILD 19#define DYNARDO_MOPSOLVER_DLPUBLIC DYNARDO_DLPUBLIC_SHARED_EXPORT 20#else 21#define DYNARDO_MOPSOLVER_DLPUBLIC DYNARDO_DLPUBLIC_SHARED_IMPORT 22#endif 23#else 24#define DYNARDO_MOPSOLVER_DLPUBLIC 25#endif 26 27#ifdef __cplusplus 28#define DYNARDO_MOPSOLVER_API extern "C" DYNARDO_MOPSOLVER_DLPUBLIC 29#else 30#define DYNARDO_MOPSOLVER_API extern DYNARDO_MOPSOLVER_DLPUBLIC 31#endif 32 33#endif // DYNARDO_MOPSOLVERAPI2_SHARED_H_