1/*
2 * Copyright (c) 2010-2017 OTClient <https://github.com/edubart/otclient>
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 * THE SOFTWARE.
21 */
22
23#ifndef PCH_H
24#define PCH_H
25
26// common C headers
27#include <cstdio>
28#include <cstdlib>
29#include <cstddef>
30#include <cstring>
31#include <cmath>
32
33// common STL headers
34#include <iostream>
35#include <sstream>
36#include <string>
37#include <vector>
38#include <set>
39#include <list>
40#include <deque>
41#include <map>
42#include <algorithm>
43#include <functional>
44#include <array>
45#include <unordered_map>
46#include <unordered_set>
47#include <tuple>
48#include <iomanip>
49#include <typeinfo>
50
51// new
52#include <thread>
53#include <memory>
54#include <functional>
55#include <condition_variable>
56#include <mutex>
57#include <future>
58#include <chrono>
59#include <random>
60#ifndef ANDROID
61#include <filesystem>
62#endif
63
64 // boost
65#ifdef ANDROID
66#define BOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX
67#endif
68#include <boost/system/config.hpp>
69#include <boost/system/error_code.hpp>
70#include <boost/asio.hpp>
71#include <boost/beast.hpp>
72
73#include <boost/asio/io_service.hpp>
74#include <boost/asio/ip/tcp.hpp>
75#ifndef __EMSCRIPTEN__
76#include <boost/asio/ssl.hpp>
77
78#include <boost/beast/ssl.hpp>
79#endif
80#include <boost/beast/core/flat_buffer.hpp>
81#include <boost/beast/http/write.hpp>
82#include <boost/beast/http/string_body.hpp>
83#include <boost/beast/http/dynamic_body.hpp>
84#include <boost/beast/http/read.hpp>
85#include <boost/beast/http/parser.hpp>
86#ifndef __EMSCRIPTEN__
87#include <boost/beast/websocket.hpp>
88#include <boost/beast/websocket/ssl.hpp>
89#endif
90
91#include <boost/algorithm/hex.hpp>
92
93#endif
94