Commit 4c3754da8c3edb8d6c9c1de422cc54329ccf3645

Timothy Gu 2014-08-17T00:11:08

Fix test DLL export Fixes issue 16. Patch by Nathan Rajlich <nathan@tootallnate.net>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;