From 4c3754da8c3edb8d6c9c1de422cc54329ccf3645 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sun, 17 Aug 2014 00:11:08 +0000 Subject: Fix test DLL export Fixes issue 16. Patch by Nathan Rajlich --- testdll.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testdll.c b/testdll.c index f378fb6..2c40014 100644 --- a/testdll.c +++ b/testdll.c @@ -19,7 +19,13 @@ #include -int function( void ) +#if defined(_WIN32) +#define EXPORT __declspec(dllexport) +#else +#define EXPORT +#endif + +EXPORT int function( void ) { printf( "Hello, world!\n" ); return 0; -- cgit v1.2.3-55-g6feb