diff options
Diffstat (limited to 'Tests/Framework/foo.cxx')
-rw-r--r-- | Tests/Framework/foo.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/Framework/foo.cxx b/Tests/Framework/foo.cxx index 62acbb7..521f6f2 100644 --- a/Tests/Framework/foo.cxx +++ b/Tests/Framework/foo.cxx @@ -1,6 +1,8 @@ #include <stdio.h> - -void foo() +#ifdef _WIN32 +# define CM_TEST_LIB_EXPORT __declspec( dllexport ) +#endif +CM_TEST_LIB_EXPORT void foo() { printf("foo\n"); } |