libc++ now officially supports filesystem now
This commit is contained in:
parent
a11d030b66
commit
e5c02be1e0
2
Makefile
2
Makefile
@ -7,7 +7,7 @@ default: tv_rename
|
|||||||
# using libc++ because libstdc++ has a bug in regex that causes seg fault with long lines
|
# using libc++ because libstdc++ has a bug in regex that causes seg fault with long lines
|
||||||
|
|
||||||
tv_rename: functions.o tv_rename.cpp
|
tv_rename: functions.o tv_rename.cpp
|
||||||
$(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++experimental
|
$(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++fs
|
||||||
|
|
||||||
functions.o: functions.cpp
|
functions.o: functions.cpp
|
||||||
$(CXX) $(CFLAGS) -stdlib=libc++ -c functions.cpp
|
$(CXX) $(CFLAGS) -stdlib=libc++ -c functions.cpp
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <experimental/filesystem>
|
#include <filesystem>
|
||||||
|
|
||||||
void singleSeason( const std::string &path, const std::string &show, int season, std::string url );
|
void singleSeason( const std::string &path, const std::string &show, int season, std::string url );
|
||||||
void multipleSeasons( const std::string &path, const std::string &show, const std::set<int> seasons );
|
void multipleSeasons( const std::string &path, const std::string &show, const std::set<int> seasons );
|
||||||
@ -18,7 +18,7 @@ bool linux{false};
|
|||||||
Curl c;
|
Curl c;
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
namespace fs = std::experimental::filesystem;
|
namespace fs = std::filesystem;
|
||||||
std::map<std::string, std::string> languages{
|
std::map<std::string, std::string> languages{
|
||||||
{"en", "English"}, {"sv", "Svenska"}, {"no", "Norsk"}, {"da", "Dansk"}, {"fi", "Suomeksi"},
|
{"en", "English"}, {"sv", "Svenska"}, {"no", "Norsk"}, {"da", "Dansk"}, {"fi", "Suomeksi"},
|
||||||
{"nl", "Nederlands"}, {"de", "Deutsch"}, {"it", "Italiano"}, {"es", "Español"}, {"fr", "Français"},
|
{"nl", "Nederlands"}, {"de", "Deutsch"}, {"it", "Italiano"}, {"es", "Español"}, {"fr", "Français"},
|
||||||
|
Loading…
Reference in New Issue
Block a user