aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;