summaryrefslogtreecommitdiff
path: root/xmake/templates/c/shared/project/src/foo.h
blob: b014f28e3305d3bf9890473c03d38a03c9f29965 (plain)
1
2
3
4
5
6
7
8
9
10
11
#if defined(_WIN32)
#   define __export         __declspec(dllexport)
#elif defined(__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
#   define __export         __attribute__((visibility("default")))
#else
#   define __export
#endif

__export int add(int a, int b);