mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Add 32 and 64 bit FSUIPC library projects
Summary: So far we were linking against the prebuilt FSUIPC user library, compiled with VS2010 many years ago. The source of this user library is part of the FSUIPC SDK, so we can benefit from modern compilers and include it into our source tree. This version contains some very small wide char fixes compared to the official FSUIPC SDK source. It also includes the new 64 bit version. Reviewers: #swift_pilot_client, msutcliffe Reviewed By: #swift_pilot_client, msutcliffe Differential Revision: https://dev.swift-project.org/D29
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#ifdef SWIFT_USING_FSUIPC
|
||||
#if defined(SWIFT_USING_FSUIPC32) || defined(SWIFT_USING_FSUIPC64)
|
||||
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
@@ -16,8 +16,16 @@
|
||||
#include "fsuipc.h"
|
||||
#include <windows.h>
|
||||
// bug in FSUIPC_User.h, windows.h not included, so we have to import it first
|
||||
#include "FSUIPC/FSUIPC_User.h"
|
||||
#include "FSUIPC/NewWeather.h"
|
||||
|
||||
#ifdef SWIFT_USING_FSUIPC32
|
||||
#include "../fsuipc32/FSUIPC_User.h"
|
||||
#include "../fsuipc32/NewWeather.h"
|
||||
#endif
|
||||
|
||||
#ifdef SWIFT_USING_FSUIPC64
|
||||
#include "../fsuipc64/FSUIPC_User64.h"
|
||||
#include "../fsuipc64/NewWeather.h"
|
||||
#endif
|
||||
|
||||
#include "blackmisc/simulation/fscommon/bcdconversions.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
@@ -500,4 +508,4 @@ namespace BlackSimPlugin
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
#endif //SWIFT_USING_FSUIPC
|
||||
#endif // defined(SWIFT_USING_FSUIPC32) || defined(SWIFT_USING_FSUIPC64)
|
||||
|
||||
Reference in New Issue
Block a user