diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-08-17 00:11:08 +0000 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-08-17 00:11:08 +0000 |
commit | 4c3754da8c3edb8d6c9c1de422cc54329ccf3645 (patch) | |
tree | 67dd3ca29a2a7c323263100ca1d5ec250d0ed562 | |
parent | 665499d095190d49a9b70059a6c7225f81abc78b (diff) | |
download | dlfcn-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -19,7 +19,13 @@ | |||
19 | 19 | ||
20 | #include <stdio.h> | 20 | #include <stdio.h> |
21 | 21 | ||
22 | int function( void ) | 22 | #if defined(_WIN32) |
23 | #define EXPORT __declspec(dllexport) | ||
24 | #else | ||
25 | #define EXPORT | ||
26 | #endif | ||
27 | |||
28 | EXPORT int function( void ) | ||
23 | { | 29 | { |
24 | printf( "Hello, world!\n" ); | 30 | printf( "Hello, world!\n" ); |
25 | return 0; | 31 | return 0; |