v1.3.0.0
global.h
1/*
2This file is part of the WASimCommander project.
3https://github.com/mpaperno/WASimCommander
4
5COPYRIGHT: (c) Maxim Paperno; All Rights Reserved.
6
7This file may be used under the terms of either the GNU General Public License (GPL)
8or the GNU Lesser General Public License (LGPL), as published by the Free Software
9Foundation, either version 3 of the Licenses, or (at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16Copies of the GNU GPL and LGPL are included with this project
17and are available at <http://www.gnu.org/licenses/>.
18*/
19
20#pragma once
21
22// the macros _staticLibrary/_library/_exe are set in the common.props file at the src root
23#ifndef WSMCMND_API
24# if defined(WSMCMND_API_STATIC) || defined(_staticlibrary) || defined(_MSFS_WASM)
25# define WSMCMND_API
26# else
27# if defined(WSMCMND_API_EXPORT) || defined(_library)
28# define WSMCMND_API __declspec(dllexport)
29# define WSMCMND_API_IMPORT
30# else /* defined(_exe) */
31# define WSMCMND_API __declspec(dllimport)
32# define WSMCMND_API_IMPORT extern
33# endif
34# endif
35#endif
36
37// grrr....
38#ifdef min
39#undef min
40#undef max
41#endif