DISPLACE
1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
commons_global.h
Go to the documentation of this file.
1
#ifndef COMMONS_GLOBAL_H
2
#define COMMONS_GLOBAL_H
3
4
#ifdef _WIN32
5
6
// This is only relevant for Windows. Though commons.dll shouldn't depend by Qt, it is harmless because on Windows
7
// we do require user to provide qt.
8
#if defined(_WIN32) || defined(_WIN64)
9
#define Q_DECL_EXPORT __declspec(dllexport)
10
#define Q_DECL_IMPORT __declspec(dllimport)
11
#else
12
#define Q_DECL_EXPORT
13
#define Q_DECL_IMPORT
14
#endif
15
16
#if defined(COMMONS_LIBRARY)
17
# define COMMONSSHARED_EXPORT Q_DECL_EXPORT
18
#else
19
# define COMMONSSHARED_EXPORT Q_DECL_IMPORT
20
#endif
21
#else
22
23
#define COMMONSSHARED_EXPORT
24
#endif
25
26
27
#endif // COMMONS_GLOBAL_H
commons
commons_global.h
Generated by
1.8.15