View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

export.h
Go to the documentation of this file.
1#ifndef UTIL_EXPORT_H
2#define UTIL_EXPORT_H
3
4#if defined(_WIN32) && !defined(NODLL)
5#define V_IMPORT __declspec(dllimport)
6#define V_EXPORT __declspec(dllexport)
7
8#elif defined(__GNUC__) && __GNUC__ >= 4
9#define V_EXPORT __attribute__((visibility("default")))
10#define V_IMPORT V_EXPORT
11#else
12#define V_IMPORT
13#define V_EXPORT
14#endif
15
16#if defined(vistle_util_EXPORTS)
17#define V_UTILEXPORT V_EXPORT
18#else
19#define V_UTILEXPORT V_IMPORT
20#endif
21
22#if defined(vistle_util_mpi_EXPORTS)
23#define V_UTILMPIEXPORT V_EXPORT
24#else
25#define V_UTILMPIEXPORT V_IMPORT
26#endif
27
28#endif