diff options
-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; |