parent
23ac32c196
commit
722be81bfb
1 changed files with 7 additions and 1 deletions
@ -1,3 +1,9 @@ |
||||
int cppfunc() { |
||||
#if defined _WIN32 |
||||
#define DLL_PUBLIC __declspec(dllexport) |
||||
#else |
||||
#define DLL_PUBLIC __attribute__ ((visibility ("default"))) |
||||
#endif |
||||
|
||||
int DLL_PUBLIC cppfunc() { |
||||
return 42; |
||||
} |
||||
|
Loading…
Reference in new issue