2010-06-18 08:59:55 +02:00
|
|
|
#include "config.h"
|
|
|
|
|
2013-01-04 16:01:50 +01:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
|
2010-05-21 03:19:40 +02:00
|
|
|
// Common C
|
2011-07-15 06:04:34 +02:00
|
|
|
#include <cassert>
|
|
|
|
#include <cerrno>
|
2011-07-27 00:24:59 +02:00
|
|
|
#include <climits>
|
2011-07-15 06:04:34 +02:00
|
|
|
#include <cmath>
|
|
|
|
#include <cstdarg>
|
|
|
|
#include <cstdio>
|
2012-09-25 02:09:42 +02:00
|
|
|
#include <cstdint>
|
2011-07-15 06:04:34 +02:00
|
|
|
#include <cstring>
|
2010-05-21 03:13:36 +02:00
|
|
|
#include <sys/stat.h>
|
2010-06-16 09:49:35 +02:00
|
|
|
#ifdef HAVE_SYS_TIME_H
|
|
|
|
# include <sys/time.h>
|
|
|
|
#else
|
2011-07-27 00:25:10 +02:00
|
|
|
# include <ctime>
|
2010-06-16 09:49:35 +02:00
|
|
|
#endif
|
2010-05-21 03:13:36 +02:00
|
|
|
|
2010-05-21 03:19:40 +02:00
|
|
|
// Windows C
|
2010-05-21 05:07:48 +02:00
|
|
|
#ifdef _WIN32
|
2010-05-21 03:19:40 +02:00
|
|
|
#include <io.h>
|
|
|
|
#endif
|
|
|
|
|
2011-02-22 20:03:03 +01:00
|
|
|
// Unix C
|
|
|
|
#ifndef _WIN32
|
2011-02-23 04:29:30 +01:00
|
|
|
#include <sys/statvfs.h>
|
|
|
|
#include <sys/param.h>
|
2011-02-22 20:03:03 +01:00
|
|
|
#endif
|
|
|
|
|
2010-05-21 03:19:40 +02:00
|
|
|
// Common C++
|
2012-12-22 22:44:54 +01:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(push)
|
|
|
|
#pragma warning(disable:4996)
|
|
|
|
#endif
|
|
|
|
|
2011-07-15 06:04:34 +02:00
|
|
|
#include <algorithm>
|
2010-05-31 22:55:29 +02:00
|
|
|
#include <deque>
|
2010-05-21 03:13:36 +02:00
|
|
|
#include <fstream>
|
2012-09-25 01:35:27 +02:00
|
|
|
#include <functional>
|
2011-12-22 22:10:10 +01:00
|
|
|
#include <iomanip>
|
2010-05-21 03:13:36 +02:00
|
|
|
#include <iostream>
|
2010-07-07 07:24:16 +02:00
|
|
|
#include <iterator>
|
2011-07-15 06:04:34 +02:00
|
|
|
#include <list>
|
2011-02-10 00:56:24 +01:00
|
|
|
#include <locale>
|
2010-05-21 03:13:36 +02:00
|
|
|
#include <map>
|
2012-09-25 01:35:27 +02:00
|
|
|
#include <memory>
|
2011-07-15 06:04:34 +02:00
|
|
|
#include <numeric>
|
2011-12-22 22:10:10 +01:00
|
|
|
#include <set>
|
2010-08-26 20:38:37 +02:00
|
|
|
#include <sstream>
|
2011-12-22 22:10:10 +01:00
|
|
|
#include <stdexcept>
|
2010-08-26 20:38:37 +02:00
|
|
|
#include <string>
|
2012-09-25 01:35:27 +02:00
|
|
|
#include <tuple>
|
2011-07-15 06:04:34 +02:00
|
|
|
#include <vector>
|
2010-08-26 20:38:37 +02:00
|
|
|
|
2012-12-22 22:44:54 +01:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif
|
2010-05-21 03:13:36 +02:00
|
|
|
|
2012-09-25 01:47:38 +02:00
|
|
|
// Boost
|
|
|
|
#include <boost/container/list.hpp>
|
|
|
|
#include <boost/container/map.hpp>
|
|
|
|
|
2010-05-31 22:55:29 +02:00
|
|
|
#ifdef __DEPRECATED // Dodge GCC warnings
|
|
|
|
# undef __DEPRECATED
|
|
|
|
# include <strstream>
|
|
|
|
# define __DEPRECATED
|
|
|
|
#else
|
|
|
|
# include <strstream>
|
|
|
|
#endif
|