/
some.h
32 lines (28 loc) · 893 Bytes
/
some.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SOME_H
#define SOME_H
#ifdef SomeLibrary_EXPORTS // CMake sets that when BUILD_SHARED_LIBS=1
#ifdef _MSC_VER // for MSVC
// export on compiling the DLL (when building)
#define DLLEXPORT __declspec(dllexport)
//#elif __GNUC__ >= 4 // for GCC
// #define DLLEXPORT __attribute__ ((visibility("default")))
#endif // any other compilers require anything like that?
#else
#ifdef _MSC_VER // for MSVC
// import on using the created DLL (when using in projects)
#define DLLEXPORT __declspec(dllimport)
//#elif __GNUC__ >= 4 // for GCC
// // something here for GCC?
#endif // any other compilers require anything like that?
#endif
#ifndef DLLEXPORT
#define DLLEXPORT // so it doesn't fail being undefined
#endif
namespace prjct
{
namespace lbrSome
{
DLLEXPORT void doSome();
}
}
#endif // SOME_H