X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c9786de3a5d0315a252854305bf771196e34224..c29c95fe24973b94fd724db767193171ca7c513d:/samples/mfc/mfctest.cpp diff --git a/samples/mfc/mfctest.cpp b/samples/mfc/mfctest.cpp index a67b88d026..31a7ded470 100644 --- a/samples/mfc/mfctest.cpp +++ b/samples/mfc/mfctest.cpp @@ -50,6 +50,18 @@ // - [version] -> 42 or 70 or 80 etc // - u if using Unicode +// Disable deprecation warnings from headers included from stdafx.h for VC8+ +#ifndef _CRT_SECURE_NO_WARNINGS + #define _CRT_SECURE_NO_WARNINGS +#endif + +// Also define WINVER to avoid warnings about it being undefined from the +// platform SDK headers (usually this is not necessary because it is done by wx +// headers but here we include the system ones before them) +#ifndef WINVER + #define WINVER 0x0600 +#endif + #include "stdafx.h" // For compilers that support precompilation, includes "wx/wx.h".