summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorTomasz Konojacki <me@xenu.pl>2019-04-04 22:39:38 +0200
committerKarl Williamson <khw@cpan.org>2019-04-05 22:51:00 -0600
commit6879a07bc8b8e75c35d0e3b765ea718cc1c7aeb2 (patch)
tree59a3fdded5022da4f20985c5d4dada92078497a7 /win32
parentbc035eed7aac5997a56d34b98261cc7a99da4787 (diff)
downloadperl-6879a07bc8b8e75c35d0e3b765ea718cc1c7aeb2.tar.gz
implement diagnostics ignore/restore macros for Visual C++
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/win32.h b/win32/win32.h
index ee1d889851..73aa67a3be 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -285,8 +285,7 @@ typedef unsigned short mode_t;
# pragma intrinsic(_rotl64,_rotr64)
#endif
-#pragma warning(push)
-#pragma warning(disable:4756;disable:4056)
+MSVC_DIAG_IGNORE(4756 4056)
PERL_STATIC_INLINE
double S_Infinity() {
/* this is a real C literal which can get further constant folded
@@ -295,7 +294,8 @@ double S_Infinity() {
folding INF is creating -INF */
return (DBL_MAX+DBL_MAX);
}
-#pragma warning(pop)
+MSVC_DIAG_RESTORE
+
#define NV_INF S_Infinity()
/* selectany allows duplicate and unused data symbols to be removed by