diff options
Diffstat (limited to 'tests/library/testlib.c')
-rw-r--r-- | tests/library/testlib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/library/testlib.c b/tests/library/testlib.c index f8e457a..b240819 100644 --- a/tests/library/testlib.c +++ b/tests/library/testlib.c @@ -1,4 +1,10 @@ -int multiply_by_two( int a ); +#ifdef _WIN32 +#define DLLEXPORT __declspec( dllexport ) +#else +#define DLLEXPORT +#endif + +DLLEXPORT int multiply_by_two( int a ); int multiply_by_two( int a ) { return a * 2; |