1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-08 14:55:12 +00:00
QB64-PE/tests/compile_tests/declare_library_external/lib.c

13 lines
244 B
C
Raw Normal View History

#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;
}