@@ -1,9 +1,4 @@
-#ifdef _WIN32
-# define CM_TEST_LIB_IMPORT __declspec( dllimport )
-#else
-# define CM_TEST_LIB_IMPORT
-#endif
-CM_TEST_LIB_IMPORT void foo();
+void foo();
int main()
{
foo();
@@ -1,5 +1,5 @@
#include <stdio.h>
+#if defined(_WIN32) && defined(foo_EXPORTS)
# define CM_TEST_LIB_EXPORT __declspec( dllexport )
#else
# define CM_TEST_LIB_EXPORT