Skip to content

Commit 6aa57b5

Browse files
committed
Move Windows.h filters to their own file
1 parent 27c813c commit 6aa57b5

File tree

2 files changed

+41
-38
lines changed

2 files changed

+41
-38
lines changed

Source/System/StandardIncludes.h

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,7 @@
44
#define _HAS_AUTO_PTR_ETC 1
55
#define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
66

7-
// Disable a bunch of unneeded crap in WinAPI (on top of WIN32_LEAN_AND_MEAN)
8-
#ifdef _WIN32
9-
#define NOMINMAX
10-
#define NOGDI
11-
#define NOKERNEL
12-
#define NONLS
13-
#define NOMEMMGR
14-
#define NOGDICAPMASKS
15-
#define NOVIRTUALKEYCODES
16-
#define NOWINMESSAGES
17-
#define NOWINSTYLES
18-
#define NOMETAFILE
19-
#define NOSCROLL
20-
#define NOTEXTMETRIC
21-
#define NOCOMM
22-
#define NOKANJI
23-
#define NOHELP
24-
#define NOPROFILER
25-
#define NODEFERWINDOWPOS
26-
#define NOMCX
27-
#define NOMENUS
28-
#define NOICONS
29-
#define NOKEYSTATES
30-
#define NOSYSCOMMANDS
31-
#define NORASTEROPS
32-
#define NOSHOWWINDOW
33-
#define OEMRESOURCE
34-
#define NOATOM
35-
#define NODRAWTEXT
36-
#define NOCOLOR
37-
#define NOCTLMGR
38-
#define NOMSG
39-
#define NOOPENFILE
40-
#define NOSERVICE
41-
#define NOSOUND
42-
#define NOWH
43-
#define NOWINOFFSETS
44-
#endif
7+
#include "windows_h_filters.h"
458

469
// Inclusion of relevant C++ Standard Library headers.
4710
#include <cstdlib>

Source/System/windows_h_filters.h

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#pragma once
2+
3+
// Disable a bunch of unneeded crap in WinAPI (on top of WIN32_LEAN_AND_MEAN)
4+
#ifdef _WIN32
5+
#define NOMINMAX
6+
#define NOGDI
7+
#define NOKERNEL
8+
#define NONLS
9+
#define NOMEMMGR
10+
#define NOGDICAPMASKS
11+
#define NOVIRTUALKEYCODES
12+
#define NOWINMESSAGES
13+
#define NOWINSTYLES
14+
#define NOMETAFILE
15+
#define NOSCROLL
16+
#define NOTEXTMETRIC
17+
#define NOCOMM
18+
#define NOKANJI
19+
#define NOHELP
20+
#define NOPROFILER
21+
#define NODEFERWINDOWPOS
22+
#define NOMCX
23+
#define NOMENUS
24+
#define NOICONS
25+
#define NOKEYSTATES
26+
#define NOSYSCOMMANDS
27+
#define NORASTEROPS
28+
#define NOSHOWWINDOW
29+
#define OEMRESOURCE
30+
#define NOATOM
31+
#define NODRAWTEXT
32+
#define NOCOLOR
33+
#define NOCTLMGR
34+
#define NOMSG
35+
#define NOOPENFILE
36+
#define NOSERVICE
37+
#define NOSOUND
38+
#define NOWH
39+
#define NOWINOFFSETS
40+
#endif

0 commit comments

Comments
 (0)