mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-01 16:20:17 +00:00
13 lines
244 B
C
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;
|
||
|
}
|