8f86407cfd
Create target property WINDOWS_EXPORT_ALL_SYMBOLS to automatically generate a module definition file from MS-compatible .obj files and give it to the linker in order to export all symbols from the .dll part of a SHARED library.
16 lines
127 B
C
16 lines
127 B
C
#ifdef _MSC_VER
|
|
#include "windows.h"
|
|
#else
|
|
#define WINAPI
|
|
#endif
|
|
|
|
int WINAPI foo()
|
|
{
|
|
return 10;
|
|
}
|
|
|
|
int bar()
|
|
{
|
|
return 5;
|
|
}
|