Skip to content

Commit 4a9437f

Browse files
committed
Reorganize Windows-specific includes to improve code structure
1 parent 273b27e commit 4a9437f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/chiplet.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
//
2525
//---------------------------------------------------------------------------------------
2626

27+
#ifdef _WIN32
28+
#define NOMINMAX
29+
#define WIN32_LEAN_AND_MEAN
30+
#include <windows.h>
31+
#endif
32+
2733
#include <chiplet/octocompiler.hpp>
2834
#include <chiplet/chip8decompiler.hpp>
2935

@@ -41,12 +47,6 @@
4147
#include <set>
4248
#include <stdexcept>
4349

44-
#ifdef _WIN32
45-
#define NOMINMAX
46-
#define WIN32_LEAN_AND_MEAN
47-
#include <windows.h>
48-
#endif
49-
5050
enum WorkMode { ePREPROCESS, eCOMPILE, eDISASSEMBLE, eANALYSE, eSEARCH, eDEEP_ANALYSE };
5151
static std::unordered_map<std::string, std::string> fileMap;
5252
static std::set<std::string> extensionsDetected;

0 commit comments

Comments
 (0)