ENH: make it work on non windows

This commit is contained in:
Bill Hoffman 2007-05-08 12:43:06 -04:00
parent 39ccc4fb11
commit f2d3e386f7
2 changed files with 4 additions and 0 deletions

View File

@ -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()

View File

@ -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()
{