From f019b7adcfac1b48afc7c1f168915bcc566839c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Thu, 5 Aug 2021 16:28:27 +0900 Subject: [PATCH] Minor changes to avoid conflicts and warnings in visual studio. --- dlib/external/libpng/pngconf.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlib/external/libpng/pngconf.h b/dlib/external/libpng/pngconf.h index 927a769db..6cc1855a6 100644 --- a/dlib/external/libpng/pngconf.h +++ b/dlib/external/libpng/pngconf.h @@ -18,6 +18,15 @@ * and png_info. */ +#ifdef _MSC_VER +// Disable the following warnings for Visual Studio +// This is a warning you get from visual studio 2005 about things in the standard C++ +// library being "deprecated." I checked the C++ standard and it doesn't say jack +// about any of them (I checked the searchable PDF). So this warning is total Bunk. +#pragma warning(disable : 4996) +#endif + + #ifndef PNGCONF_H #define PNGCONF_H