mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Merge pull request #276 from tomaz82/replaceBoostLocale
[Suggestion] Replace boost::locale with std::locale
This commit is contained in:
commit
92671bc217
|
@ -50,9 +50,9 @@ find_package(Freetype REQUIRED)
|
|||
find_package(FreeImage REQUIRED)
|
||||
find_package(SDL2 REQUIRED)
|
||||
if(MSVC)
|
||||
find_package(Boost REQUIRED COMPONENTS system date_time locale)
|
||||
find_package(Boost REQUIRED COMPONENTS system date_time)
|
||||
else()
|
||||
find_package(Boost REQUIRED COMPONENTS system filesystem date_time locale)
|
||||
find_package(Boost REQUIRED COMPONENTS system filesystem date_time)
|
||||
endif()
|
||||
find_package(CURL REQUIRED)
|
||||
find_package(VLC REQUIRED)
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include "Settings.h"
|
||||
#include "ScraperCmdLine.h"
|
||||
#include <sstream>
|
||||
#include <boost/locale.hpp>
|
||||
#include <FreeImage.h>
|
||||
|
||||
#ifdef WIN32
|
||||
|
@ -182,7 +181,7 @@ int main(int argc, char* argv[])
|
|||
unsigned int width = 0;
|
||||
unsigned int height = 0;
|
||||
|
||||
std::locale::global(boost::locale::generator().generate(""));
|
||||
std::locale::global(std::locale(std::locale(""), "C", std::locale::numeric));
|
||||
boost::filesystem::path::imbue(std::locale());
|
||||
|
||||
if(!parseArgs(argc, argv, &width, &height))
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <sstream>
|
||||
#include "Util.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/locale.hpp>
|
||||
|
||||
#define HOLD_TIME 1000
|
||||
|
||||
|
|
Loading…
Reference in a new issue