neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
win32.hpp
Go to the documentation of this file.
1// win32.h : include file for standard system include files,
2// or project specific include files that are used frequently, but
3// are changed infrequently
4//
5
6#pragma once
7
8#include <string>
9
10#pragma warning (disable: 4355 ) // 'this' : used in base member initializer list
11#pragma warning (disable: 4258 ) // definition from the for loop is ignored; the definition from the enclosing scope is used
12#pragma warning (disable: 4503 ) // decorated name length exceeded, name was truncated
13#pragma warning (disable: 4351 ) // new behavior: elements of array 'xxx' will be default initialized
14#pragma warning (disable: 4512 ) // assignment operator could not be generated
15#pragma warning (disable: 4521 ) // multiple copy constructors specified
16#pragma warning (disable: 4996 ) // 'function': was declared deprecated
17#pragma warning (disable: 4345 ) // behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized
18#pragma warning (disable: 4250 ) // class1' : inherits 'class2::member' via dominance
19#pragma warning (disable: 4834 ) // discarding return value of function with 'nodiscard' attribute
20#pragma warning (disable: 4459 ) // declaration of 'attr' hides global declaration
21#pragma warning (disable: 4100 ) // unreferenced formal parameter
22#pragma warning (disable: 4324 ) // structure was padded due to alignment specifier
23#pragma warning (disable: 4201 ) // nonstandard extension used : nameless struct / union
24
25#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
26
27#if _MSC_VER < 1900
28#pragma execution_character_set("utf-8")
29#define u8
30#endif
31
32#ifdef NDEBUG
33
34#ifndef _SCL_SECURE_NO_WARNINGS
35 #define _SCL_SECURE_NO_WARNINGS
36#endif
37
38#ifndef _CRT_SECURE_NO_WARNINGS
39 #define _CRT_SECURE_NO_WARNINGS
40#endif
41
42#ifdef _SECURE_SCL
43 #undef _SECURE_SCL
44#endif
45#define _SECURE_SCL 0
46#ifdef _HAS_ITERATOR_DEBUGGING
47 #undef _HAS_ITERATOR_DEBUGGING
48#endif
49#define _HAS_ITERATOR_DEBUGGING 0
50
51#endif
52
53#define _WIN32_WINNT _WIN32_WINNT_WINBLUE
54
55#define WIN32_LEAN_AND_MEAN
56#define NOMINMAX
57
58#ifdef USING_BOOST
59#define BOOST_USE_WINDOWS_H
60#endif
61
62namespace neolib
63{
65}
std::string win32_get_last_error_as_string()