This is extract from #211 that enables compilation with GCC. With #211 now in the state of bitrot, I would rather try approaching it in smaller steps that can be hopefully merged quicker, even if it does not provide full support for all the features #211 provided. This will _compile_ correctly with my (@janisozaur) GCC, but clang is more picky about flexible array members and refuses to compile it yet. I will extract remaining parts of #211 in future PRs. I marked @fwcd as author, as he did most of the work in #211.
23 lines
692 B
C++
23 lines
692 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
// The CalcManager project should be able to be compiled with or without a precompiled header
|
|
// in - order to support other toolchains besides MSVC. When adding new system headers, make sure
|
|
// that the relevant source file includes all headers it needs, but then also add the system headers
|
|
// here so that MSVC users see the performance benefit.
|
|
|
|
#include <algorithm>
|
|
#include <array>
|
|
#include <cassert>
|
|
#include <intsafe.h>
|
|
#include <list>
|
|
#include <future>
|
|
#include <regex>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include <vector>
|
|
#include <winerror.h>
|