Skip to content

Commit debfec5

Browse files
committed
Silence warnings in the 32-bit release bit.
1 parent 1c7dc38 commit debfec5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/stdafx.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
2525
#pragma warning(disable: 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
2626

27+
// Hack for 32-bit release builds
28+
#pragma warning(push)
29+
#pragma warning(disable: 4738)
30+
#include <corecrt_math.h>
31+
#pragma warning(pop)
32+
2733
#include <afxwin.h> // MFC core and standard components
2834
#include <afxext.h> // MFC extensions
2935
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls

0 commit comments

Comments
 (0)