aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-17 00:11:08 +0000
committerTimothy Gu <timothygu99@gmail.com>2014-08-17 00:11:08 +0000
commit4c3754da8c3edb8d6c9c1de422cc54329ccf3645 (patch)
tree67dd3ca29a2a7c323263100ca1d5ec250d0ed562
parent665499d095190d49a9b70059a6c7225f81abc78b (diff)
downloaddlfcn-win32-4c3754da8c3edb8d6c9c1de422cc54329ccf3645.tar.gz
dlfcn-win32-4c3754da8c3edb8d6c9c1de422cc54329ccf3645.tar.bz2
dlfcn-win32-4c3754da8c3edb8d6c9c1de422cc54329ccf3645.zip
Fix test DLL export
Fixes issue 16. Patch by Nathan Rajlich <nathan@tootallnate.net>
-rw-r--r--testdll.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/testdll.c b/testdll.c
index f378fb6..2c40014 100644
--- a/testdll.c
+++ b/testdll.c
@@ -19,7 +19,13 @@
19 19
20#include <stdio.h> 20#include <stdio.h>
21 21
22int function( void ) 22#if defined(_WIN32)
23#define EXPORT __declspec(dllexport)
24#else
25#define EXPORT
26#endif
27
28EXPORT int function( void )
23{ 29{
24 printf( "Hello, world!\n" ); 30 printf( "Hello, world!\n" );
25 return 0; 31 return 0;