swift
Loading...
Searching...
No Matches
simconnectwindows.h
1// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
4// in P3Dv4 the simconnect.h does not include windows.h
5// here we include windows.h first
6
7#ifndef SWIFT_SIMPLUGIN_FSX_SIMCONNECTWINDOWS_H
8#define SWIFT_SIMPLUGIN_FSX_SIMCONNECTWINDOWS_H
9
10#ifndef NOMINMAX
11# define NOMINMAX
12#endif
13
14// clash with struct interface in objbase.h used to happen
15#pragma push_macro("interface")
16#undef interface
17
18// clang-format off
19#include <Windows.h>
20#include <SimConnect.h>
21// clang-format on
22
23#include <QtGlobal>
24
25#pragma pop_macro("interface")
26
27#ifndef Q_OS_WIN64
30{
31 double Pitch;
32 double Bank;
33 double Heading;
34};
35#endif
36
37#endif // SWIFT_SIMPLUGIN_FSX_SIMCONNECTWINDOWS_H
adding struct SIMCONNECT_DATA_PBH not existing in SimConnect FSX