1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-05 13:30:22 +00:00
QB64-PE/tests/compile_tests/declare_library_external/lib.c
2022-05-12 00:21:02 -04:00

13 lines
244 B
C

#ifdef WIN32
# define __export __declspec(dllexport)
#else
# define __export __attribute__((visibility("default")))
#endif
/* Simple code to put in a dll, has no dependencies */
__export int add_values(int v1, int v2)
{
return v1 + v2;
}