From efb44d24d5c9f70c28c758bca4683f2e249d7078 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Feb 2011 11:32:55 +0200 Subject: Disable VC++ warning 4996 (deprecated POSIX) in C code --- libxsde/xsde/c/compilers/vc-8/post.h | 7 +++++++ libxsde/xsde/c/compilers/vc-8/pre.h | 11 +++++++++++ libxsde/xsde/c/post.h | 6 ++++++ libxsde/xsde/c/pre.h | 6 ++++++ 4 files changed, 30 insertions(+) create mode 100644 libxsde/xsde/c/compilers/vc-8/post.h create mode 100644 libxsde/xsde/c/compilers/vc-8/pre.h diff --git a/libxsde/xsde/c/compilers/vc-8/post.h b/libxsde/xsde/c/compilers/vc-8/post.h new file mode 100644 index 0000000..20ebbfd --- /dev/null +++ b/libxsde/xsde/c/compilers/vc-8/post.h @@ -0,0 +1,7 @@ +/* file : xsde/c/compilers/vc-8/post.h + * author : Boris Kolpackov + * copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC + * license : GNU GPL v2 + exceptions; see accompanying LICENSE file + */ + +#pragma warning (pop) diff --git a/libxsde/xsde/c/compilers/vc-8/pre.h b/libxsde/xsde/c/compilers/vc-8/pre.h new file mode 100644 index 0000000..dce543b --- /dev/null +++ b/libxsde/xsde/c/compilers/vc-8/pre.h @@ -0,0 +1,11 @@ +/* file : xsde/c/compilers/vc-8/pre.h + * author : Boris Kolpackov + * copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC + * license : GNU GPL v2 + exceptions; see accompanying LICENSE file + */ + +/* Push warning state. */ +#pragma warning (push, 3) + +/* Disabled warnings. */ +#pragma warning (disable:4996) /* deprecated function */ diff --git a/libxsde/xsde/c/post.h b/libxsde/xsde/c/post.h index 273958a..55081b1 100644 --- a/libxsde/xsde/c/post.h +++ b/libxsde/xsde/c/post.h @@ -4,6 +4,12 @@ * license : GNU GPL v2 + exceptions; see accompanying LICENSE file */ +#ifdef _MSC_VER +# if (_MSC_VER >= 1400) +# include +# endif +#endif + #if defined(__ghs__) || defined(__ghs) || defined(ghs) # include #endif diff --git a/libxsde/xsde/c/pre.h b/libxsde/xsde/c/pre.h index 98b5f1e..746762a 100644 --- a/libxsde/xsde/c/pre.h +++ b/libxsde/xsde/c/pre.h @@ -4,6 +4,12 @@ * license : GNU GPL v2 + exceptions; see accompanying LICENSE file */ +#ifdef _MSC_VER +# if (_MSC_VER >= 1400) +# include +# endif +#endif + #if defined(__ghs__) || defined(__ghs) || defined(ghs) # include #endif -- cgit v1.1