BUG: Fix test that broke on Windows - sharing sources between SHARED and STATIC libraries requires correct export and import decorations in the source code...

This commit is contained in:
David Cole 2007-08-01 16:15:54 -04:00
parent d58b93a5b1
commit 64f40a2816
2 changed files with 2 additions and 7 deletions

View File

@ -1,9 +1,4 @@
#ifdef _WIN32 void foo();
# define CM_TEST_LIB_IMPORT __declspec( dllimport )
#else
# define CM_TEST_LIB_IMPORT
#endif
CM_TEST_LIB_IMPORT void foo();
int main() int main()
{ {
foo(); foo();

View File

@ -1,5 +1,5 @@
#include <stdio.h> #include <stdio.h>
#ifdef _WIN32 #if defined(_WIN32) && defined(foo_EXPORTS)
# define CM_TEST_LIB_EXPORT __declspec( dllexport ) # define CM_TEST_LIB_EXPORT __declspec( dllexport )
#else #else
# define CM_TEST_LIB_EXPORT # define CM_TEST_LIB_EXPORT