summaryrefslogtreecommitdiff
path: root/lib/cpp/src/thrift/thrift_export.h
blob: f5c059fb7c209a6b319a1fb49ae39ff0582c2689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef THRIFT_EXPORT_H
#define THRIFT_EXPORT_H

#ifdef THRIFT_STATIC_DEFINE
#  define THRIFT_EXPORT
#elif defined(_MSC_VER )
#  ifndef THRIFT_EXPORT
#    ifdef thrift_EXPORTS
          /* We are building this library */
#      define THRIFT_EXPORT __declspec(dllexport)
#    else
          /* We are using this library */
#      define THRIFT_EXPORT __declspec(dllimport)
#    endif
#  endif
#else
#  define THRIFT_EXPORT
#endif

#endif /* THRIFT_EXPORT_H */