ENH: make it work on non windows
This commit is contained in:
parent
39ccc4fb11
commit
f2d3e386f7
|
@ -1,5 +1,7 @@
|
|||
#ifdef _WIN32
|
||||
# define CM_TEST_LIB_IMPORT __declspec( dllimport )
|
||||
#else
|
||||
# define CM_TEST_LIB_IMPORT
|
||||
#endif
|
||||
CM_TEST_LIB_IMPORT void foo();
|
||||
int main()
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#include <stdio.h>
|
||||
#ifdef _WIN32
|
||||
# define CM_TEST_LIB_EXPORT __declspec( dllexport )
|
||||
#else
|
||||
# define CM_TEST_LIB_EXPORT
|
||||
#endif
|
||||
CM_TEST_LIB_EXPORT void foo()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue