diff options
Diffstat (limited to 'Tests/COnly/libc2.h')
-rw-r--r-- | Tests/COnly/libc2.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Tests/COnly/libc2.h b/Tests/COnly/libc2.h index c2d47e5..bc26e01 100644 --- a/Tests/COnly/libc2.h +++ b/Tests/COnly/libc2.h @@ -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(); |