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:
parent
d58b93a5b1
commit
64f40a2816
|
@ -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>
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && defined(foo_EXPORTS)
|
||||
# define CM_TEST_LIB_EXPORT __declspec( dllexport )
|
||||
#else
|
||||
# define CM_TEST_LIB_EXPORT
|
||||
|
|
Loading…
Reference in New Issue