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