diff options
Diffstat (limited to 'testdll3.c')
-rw-r--r-- | testdll3.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testdll3.c b/testdll3.c new file mode 100644 index 0000000..3906e48 --- /dev/null +++ b/testdll3.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * dlfcn-win32 | ||
3 | * Copyright (c) 2007 Ramiro Polla | ||
4 | * Copyright (c) 2019 Pali Rohár <pali.rohar@gmail.com> | ||
5 | * | ||
6 | * dlfcn-win32 is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU Lesser General Public | ||
8 | * License as published by the Free Software Foundation; either | ||
9 | * version 2.1 of the License, or (at your option) any later version. | ||
10 | * | ||
11 | * dlfcn-win32 is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * Lesser General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU Lesser General Public | ||
17 | * License along with dlfcn-win32; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | |||
21 | #ifdef _DEBUG | ||
22 | #define _CRTDBG_MAP_ALLOC | ||
23 | #include <stdlib.h> | ||
24 | #include <crtdbg.h> | ||
25 | #endif | ||
26 | #include <stdio.h> | ||
27 | |||
28 | #if defined(_WIN32) | ||
29 | #define EXPORT __declspec(dllexport) | ||
30 | #else | ||
31 | #define EXPORT | ||
32 | #endif | ||
33 | |||
34 | EXPORT int function3( void ) | ||
35 | { | ||
36 | printf( "Hello, world!\n" ); | ||
37 | return 0; | ||
38 | } | ||