diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2011-10-12 10:53:30 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2011-10-12 10:53:30 +0800 |
commit | b93d6ab83a0cddce0a3847984a91a2819df61130 (patch) | |
tree | b13905ad03ba6ac90c787246a523a91ea8d44ab5 /msvc_recommended_pragmas.h | |
parent | 36ccdab760003fc1efd2f49e77932cb253f006f4 (diff) | |
download | glib-b93d6ab83a0cddce0a3847984a91a2819df61130.tar.gz glib-b93d6ab83a0cddce0a3847984a91a2819df61130.tar.bz2 glib-b93d6ab83a0cddce0a3847984a91a2819df61130.zip |
Bug 661438: Update msvc_recommended_pragmas.h
Don't disable warning C4996 as that is the Visual C++ warning triggered by
__declspec(deprecated) and __declspec(deprecated('..."))-disabling that
warning will defeat the purpose of G_DPRECATED/G_DEPRECATED_FOR.
For people who don't want to see the GLib deprecation warnings during GLib
compilation, define GLIB_DISABLE_DEPRECATION_WARNINGS in the projects or
property sheet.
Diffstat (limited to 'msvc_recommended_pragmas.h')
-rw-r--r-- | msvc_recommended_pragmas.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/msvc_recommended_pragmas.h b/msvc_recommended_pragmas.h index cb9370cc6..f78f9a1ca 100644 --- a/msvc_recommended_pragmas.h +++ b/msvc_recommended_pragmas.h @@ -28,4 +28,5 @@ #pragma warning(disable:4305) /* No truncation from int to char warnings */ /* work around Microsoft's premature attempt to deprecate the C-Library */ -#pragma warning(disable:4996) /* This function or variable may be unsafe. */ +#define _CRT_SECURE_NO_WARNINGS +#define _CRT_NONSTDC_NO_WARNINGS |