http://pastebin.com/m1561a96a
It is used in unitsync and the C AI interface, and it allows one to write lines that before looked this:
Code: Select all
DLL_EXPORT void __stdcall UnInit()
Code: Select all
Export(void) UnInit()
Code: Select all
SHARED_EXPORT void CALLING_CONV UnInit() // same effect as above
void CALLING_CONV UnInit() // use __stdcall calling convention
SHARED_EXPORT void UnInit() // export the function (will most likely not be used in spring)
I am using this file since some months already, and it works well (tested on windows with mingw and on linux with mingw, gcc and the intel compiler).
Any objections against integrating this into trunk?
I though on one of the following locations:
rts/System/exportdefines.h
rts/System/ExportDefines.h