forked from mia/Aegisub
1e0f08c0ed
Use boost::filesystem::path for all paths, and std::string for all other strings, converting to/from wxString as close to the actual uses of wx as possible. Where possible, replace the uses of non-UI wxWidgets functionality with the additions to the standard library in C++11, or the equivalents in boost. Move the path token management logic to libaegisub (and rewrite it in the process). Add a basic thread pool based on asio and std::thread to libaegisub. This touches nearly every file in the project and a nontrivial amount of code had to be rewritten entirely, so there's probably a lot of broken stuff.
71 lines
1.1 KiB
C++
71 lines
1.1 KiB
C++
#include "config.h"
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
// Common C
|
|
#include <cassert>
|
|
#include <cerrno>
|
|
#include <climits>
|
|
#include <cmath>
|
|
#include <cstdarg>
|
|
#include <cstdio>
|
|
#include <cstdint>
|
|
#include <cstring>
|
|
#include <sys/stat.h>
|
|
#ifdef HAVE_SYS_TIME_H
|
|
# include <sys/time.h>
|
|
#else
|
|
# include <ctime>
|
|
#endif
|
|
|
|
// Windows C
|
|
#ifdef _WIN32
|
|
#include <io.h>
|
|
#endif
|
|
|
|
// Unix C
|
|
#ifndef _WIN32
|
|
#include <sys/statvfs.h>
|
|
#include <sys/param.h>
|
|
#endif
|
|
|
|
// Common C++
|
|
#ifdef _MSC_VER
|
|
#pragma warning(push)
|
|
#pragma warning(disable:4996)
|
|
#endif
|
|
|
|
#include <algorithm>
|
|
#include <deque>
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <iomanip>
|
|
#include <iostream>
|
|
#include <iterator>
|
|
#include <list>
|
|
#include <locale>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <numeric>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <stdexcept>
|
|
#include <string>
|
|
#include <tuple>
|
|
#include <vector>
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma warning(pop)
|
|
#endif
|
|
|
|
// Boost
|
|
#include <boost/container/list.hpp>
|
|
#include <boost/container/map.hpp>
|
|
|
|
#ifdef __DEPRECATED // Dodge GCC warnings
|
|
# undef __DEPRECATED
|
|
# include <strstream>
|
|
# define __DEPRECATED
|
|
#else
|
|
# include <strstream>
|
|
#endif
|