Fix test DLL export Fixes issue 16. Patch by Nathan Rajlich <nathan@tootallnate.net>
diff --git a/testdll.c b/testdll.c
index f378fb6..2c40014 100644
--- a/testdll.c
+++ b/testdll.c
@@ -19,7 +19,13 @@
#include <stdio.h>
-int function( void )
+#if defined(_WIN32)
+#define EXPORT __declspec(dllexport)
+#else
+#define EXPORT
+#endif
+
+EXPORT int function( void )
{
printf( "Hello, world!\n" );
return 0;