1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifdef _WIN32 # define IMPORT __declspec(dllimport) IMPORT int shared_version(); int static_version() { return 0; } int mixed_version() { return 0; } #else int shared_version(); int static_version(); int mixed_version(); #endif int main() { return mixed_version() == 0 && shared_version() == 0 && static_version() == 0; }