]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress VC++ 2005 deprecation warnings (for now)
authorJulian Smart <julian@anthemion.co.uk>
Thu, 26 Jan 2006 13:15:47 +0000 (13:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 26 Jan 2006 13:15:47 +0000 (13:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 0e292d26e8f920088ffcd0d5c3f1c0be05a05c9a..a1cf5bce7f895557dccf64fdd5b68ff5f28fec6a 100644 (file)
 #   pragma warning(disable:4511)    /*  copy ctor couldn't be generated */
 #   pragma warning(disable:4512)    /*  operator=() couldn't be generated */
 #   pragma warning(disable:4710)    /*  function not inlined */
+
+/* Deprecated functions such as sprintf, localtime */
+#if __VISUALC__ >= 1400
+#define _CRT_SECURE_NO_DEPRECATE 1
+#define _CRT_NON_CONFORMING_SWPRINTFS 1
+#endif
+
 #endif /*  __VISUALC__ */
 
 /*  suppress some Salford C++ warnings */