| 1 | #include <example.h> |
| 2 | #include <stdio.h> |
| 3 | |
| 4 | #if defined(_WIN32) |
| 5 | # define MODULE_EXPORT __declspec(dllexport) |
| 6 | #else |
| 7 | # define MODULE_EXPORT |
| 8 | #endif |
| 9 | |
| 10 | #ifdef __WATCOMC__ |
| 11 | # define MODULE_CCONV __cdecl |
| 12 | #else |
| 13 | # define MODULE_CCONV |
| 14 | #endif |
| 15 | |
| 16 | MODULE_EXPORT int MODULE_CCONV example_mod_1_function(int n) |
| 17 | { |
| 18 | int result = example_exe_function() + n; |
| 19 | printf("world\n"); |
| 20 | return result; |
| 21 | } |