aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/256 subproject extracted objects/subprojects/myobjects/cpplib.h
blob: a1c38b3ba44ebeeab58c4b11e5fb1bfcb5b20ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* See http://gcc.gnu.org/wiki/Visibility#How_to_use_the_new_C.2B-.2B-_visibility_support */
#if defined(_WIN32) || defined(__CYGWIN__)
  #ifdef BUILDING_DLL
    #define DLL_PUBLIC __declspec(dllexport)
  #else
    #define DLL_PUBLIC __declspec(dllimport)
  #endif
#else
    #define DLL_PUBLIC __attribute__ ((visibility ("default")))
#endif

extern "C" int DLL_PUBLIC cppfunc(void);