-
Notifications
You must be signed in to change notification settings - Fork 0
/
pch.h
62 lines (43 loc) · 1.39 KB
/
pch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//==============================================================================
/**
@file pch.h
@brief Precompiled header
@copyright (c) 2018, Corsair Memory, Inc.
This source code is licensed under the MIT-style license found in the LICENSE file.
**/
//==============================================================================
#ifndef PCH_H
#define PCH_H
//-------------------------------------------------------------------
// C++ headers
//-------------------------------------------------------------------
#include <winsock2.h>
#include <Windows.h>
#include <string>
#include <set>
#include <thread>
#include <strsafe.h>
//-------------------------------------------------------------------
// Debug logging
//-------------------------------------------------------------------
#ifdef _DEBUG
#define DEBUG 1
#else
#define DEBUG 0
#endif
void __cdecl dbgprintf(const char *format, ...);
#if DEBUG
#define DebugPrint dbgprintf
#else
#define DebugPrint(...) while(0)
#endif
//-------------------------------------------------------------------
// json
//-------------------------------------------------------------------
#include "../Vendor/json/src/json.hpp"
using json = nlohmann::json;
//-------------------------------------------------------------------
// websocketpp
//-------------------------------------------------------------------
#define ASIO_STANDALONE
#endif //PCH_H