CuteHMI - Modbus (CuteHMI.Modbus.2)
platform.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INTERNAL_PLATFORM_HPP
2 #define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INTERNAL_PLATFORM_HPP
3 
4 #include <QtGlobal>
5 
6 #ifdef CUTEHMI_MODBUS_DYNAMIC
7  #ifdef CUTEHMI_MODBUS_BUILD
8  //export symbols to dll
9  #define CUTEHMI_MODBUS_API Q_DECL_EXPORT
10  #ifdef CUTEHMI_MODBUS_TESTS
11  //export symbols to dll
12  #define CUTEHMI_MODBUS_PRIVATE Q_DECL_EXPORT
13  #else
14  #define CUTEHMI_MODBUS_PRIVATE
15  #endif
16  #else
17  //using functions from dll
18  #define CUTEHMI_MODBUS_API Q_DECL_IMPORT
19  #ifdef CUTEHMI_MODBUS_TESTS
20  //using functions from dll
21  #define CUTEHMI_MODBUS_PRIVATE Q_DECL_IMPORT
22  #else
23  #define CUTEHMI_MODBUS_PRIVATE
24  #endif
25  #endif
26 #else
27  #define CUTEHMI_MODBUS_API
28  #define CUTEHMI_MODBUS_PRIVATE
29 #endif
30 
31 #endif
32 
33 //(c)C: Copyright © 2019, Michał Policht <michal@policht.pl>. All rights reserved.
34 //(c)C: This file is a part of CuteHMI.
35 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
36 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
37 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.