Debian Codegraph @

vendored-meson/meson/test cases/common/256 subproject extracted objects/subprojects/myobjects/cpplib.h

raw
1 /* See http://gcc.gnu.org/wiki/Visibility#How_to_use_the_new_C.2B-.2B-_visibility_support */
2 #if defined(_WIN32) || defined(__CYGWIN__)
3 #ifdef BUILDING_DLL
4 #define DLL_PUBLIC __declspec(dllexport)
5 #else
6 #define DLL_PUBLIC __declspec(dllimport)
7 #endif
8 #else
9 #define DLL_PUBLIC __attribute__ ((visibility ("default")))
10 #endif
11
12 extern "C" int DLL_PUBLIC cppfunc(void);