(Windows) Silenced some MSVC compiler warnings related to the C++17 language standard.

This commit is contained in:
Leon Styhre 2021-08-18 18:58:43 +02:00
parent 3e88e90dac
commit 816d79c32f
3 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,10 @@
// Called from Scraper.
//
#if defined(_MSC_VER) // MSVC compiler.
#define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING
#endif
#include "scrapers/GamesDBJSONScraper.h"
#include "scrapers/GamesDBJSONScraperResources.h"

View file

@ -12,6 +12,10 @@
// gamesdb_publishers.json
//
#if defined(_MSC_VER) // MSVC compiler.
#define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING
#endif
#include "scrapers/GamesDBJSONScraperResources.h"
#include "Log.h"

View file

@ -7,6 +7,10 @@
// Convert characters to Unicode, upper-/lowercase conversion, string formatting etc.
//
#if defined(_MSC_VER) // MSVC compiler.
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
#endif
#include "utils/StringUtil.h"
#include <algorithm>