Time-of-Flight Library(ToF)
3.13.1
visibility.h
1
#ifndef _CHRONOPTICS_TOF_VISIBILITY_H_
2
#define _CHRONOPTICS_TOF_VISIBILITY_H_
3
4
#if defined(_WIN32) || defined(__CYGWIN__)
5
#ifdef TOF_EXPORTS
6
#ifdef __GNUC__
7
#define TOF_EXPORT __attribute__((dllexport))
8
#else
9
#define TOF_EXPORT __declspec(dllexport)
10
#endif
11
#else
12
#ifdef __GNUC__
13
#define TOF_EXPORT __attribute__((dllimport))
14
#else
15
#define TOF_EXPORT __declspec(dllimport)
16
#endif
17
#endif
18
#else
19
#if __GNUC__ >= 4
20
#define TOF_EXPORT __attribute__((visibility("default"
)))
21
#else
22
#define TOF_EXPORT
23
#endif
24
#endif
25
26
#endif