1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#if !defined(BUILD_STATIC) && defined(_WIN32) # define EXPORT_SYMBOL __declspec(dllexport) #else # define EXPORT_SYMBOL #endif EXPORT_SYMBOL void func_cxx() { } extern "C" { EXPORT_SYMBOL void func_c_cxx() { } }