CMake/Tests/LibName/foo.c

12 lines
133 B
C

#ifdef _WIN32
__declspec(dllimport)
#endif
extern void foo();
#ifdef _WIN32
__declspec(dllexport)
#endif
void bar()
{
foo();
}