#ifdef _WIN32 __declspec(dllexport) #endif int my_function() { return 2; }