mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-25 20:13:32 +01:00

* [vcpkg] Add initial JSON support This adds a JSON parser, as well as the amount of unicode support required for JSON parsing to work according to the specification. In the future, I hope to rewrite our existing XML files into JSON. Additionally, as a drive-by, we've added the following: * add /wd4800 to pragmas.h -- this is a "performance warning", for when you implicitly convert pointers or integers to bool, and shouldn't be an issue for us. * Switched Parse::ParserBase to read unicode (as utf-8), as opposed to ASCII * Building again under VCPKG_DEVELOPMENT_WARNINGS, yay!
17 lines
503 B
C
17 lines
503 B
C
#pragma once
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1911
|
|
// [[nodiscard]] is not recognized before VS 2017 version 15.3
|
|
#pragma warning(disable : 5030)
|
|
#endif
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1910
|
|
// https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4800?view=vs-2019
|
|
#pragma warning(disable : 4800)
|
|
#endif
|
|
|
|
#if defined(__GNUC__) && __GNUC__ < 7
|
|
// [[nodiscard]] is not recognized before GCC version 7
|
|
#pragma GCC diagnostic ignored "-Wattributes"
|
|
#endif
|