Skip to content

Commit

Permalink
Define NOMINMAX for Windows.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
DDoSolitary committed May 17, 2020
1 parent d1ff49a commit ac6fb78
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions LxRunOffline/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
#pragma once

#define _CRT_SECURE_NO_WARNINGS

#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstring>
#undef _CRT_SECURE_NO_WARNINGS

#define WIN32_NO_STATUS
#ifdef _MSC_VER
#define NOMINMAX
#endif
#include <Windows.h>
#ifdef _MSC_VER
#undef MOMINMAX
#endif
#undef WIN32_NO_STATUS

#include <winternl.h>
#include <ntstatus.h>
#include <comdef.h>
Expand All @@ -18,8 +25,6 @@
#include <io.h>
#include <fcntl.h>

#undef _CRT_SECURE_NO_WARNINGS

#include <algorithm>
#include <functional>
#include <initializer_list>
Expand Down

0 comments on commit ac6fb78

Please sign in to comment.