1 2 3 4 5 6 7 8 9 10 11
#ifdef _WIN32 # ifdef testc2_EXPORTS # define CM_TEST_LIB_EXPORT __declspec(dllexport) # else # define CM_TEST_LIB_EXPORT __declspec(dllimport) # endif #else # define CM_TEST_LIB_EXPORT #endif CM_TEST_LIB_EXPORT float LibC2Func();