DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
formats_globals.h
Go to the documentation of this file.
1 #ifndef FORMATS_GLOBALS_H
2 #define FORMATS_GLOBALS_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(FORMATS_LIBRARY)
17 # define FORMATSSHARED_EXPORT Q_DECL_EXPORT
18 #else
19 # define FORMATSSHARED_EXPORT Q_DECL_IMPORT
20 #endif
21 
22 #else
23 
24 #define FORMATSSHARED_EXPORT
25 #endif
26 
27 #endif // FORMATS_GLOBALS_H