Skip to content

Commit 77d4e2b

Browse files
LoadEngineDll.h: added guards around <Windows.h>
1 parent 634dd4b commit 77d4e2b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Graphics/GraphicsEngine/interface/LoadEngineDll.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2022 Diligent Graphics LLC
2+
* Copyright 2019-2025 Diligent Graphics LLC
33
* Copyright 2015-2019 Egor Yusov
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -39,10 +39,9 @@
3939
# include "../../../Common/interface/StringTools.hpp"
4040
#endif
4141

42-
#ifndef NOMINMAX
43-
# define NOMINMAX
44-
#endif
42+
#include "../../../Platforms/Win32/interface/WinHPreface.h"
4543
#include <Windows.h>
44+
#include "../../../Platforms/Win32/interface/WinHPostface.h"
4645

4746
DILIGENT_BEGIN_NAMESPACE(Diligent)
4847

Platforms/Win32/interface/WinHPostface.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2022 Diligent Graphics LLC
2+
* Copyright 2019-2025 Diligent Graphics LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,6 +36,10 @@
3636
# undef CreateDirectory
3737
#endif
3838

39+
#ifdef DeleteFile
40+
# undef DeleteFile
41+
#endif
42+
3943
#ifdef min
4044
# undef min
4145
#endif

0 commit comments

Comments
 (0)