Shared library should export symbols on windows

This commit is contained in:
Andy Cedilnik 2003-01-01 14:26:50 -05:00
parent 9bb153cbf1
commit fe6721af84
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#include "libc2.h"
float LibC2Func() float LibC2Func()
{ {
return 1.0; return 1.0;

View File

@ -1 +1,11 @@
extern float LibC2Func(); #ifdef _WIN32
# ifdef c2_EXPORTS
# define CM_TEST_LIB_EXPORT __declspec( dllexport )
# else
# define CM_TEST_LIB_EXPORT __declspec( dllimport )
# endif
#else
# define CM_TEST_LIB_EXPORT
#endif
CM_TEST_LIB_EXPORT float LibC2Func();