aboutsummaryrefslogtreecommitdiff
path: root/libxsde
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-02-08 11:32:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-02-08 11:32:55 +0200
commitefb44d24d5c9f70c28c758bca4683f2e249d7078 (patch)
treeabddabf2505241a5d3539de59c5ea060b882f26e /libxsde
parentb0c7098f8fd9f4043f7fe1faecec1809695a4e21 (diff)
Disable VC++ warning 4996 (deprecated POSIX) in C code
Diffstat (limited to 'libxsde')
-rw-r--r--libxsde/xsde/c/compilers/vc-8/post.h7
-rw-r--r--libxsde/xsde/c/compilers/vc-8/pre.h11
-rw-r--r--libxsde/xsde/c/post.h6
-rw-r--r--libxsde/xsde/c/pre.h6
4 files changed, 30 insertions, 0 deletions
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 <boris@codesynthesis.com>
+ * 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 <boris@codesynthesis.com>
+ * 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 <xsde/c/compilers/vc-8/post.h>
+# endif
+#endif
+
#if defined(__ghs__) || defined(__ghs) || defined(ghs)
# include <xsde/c/compilers/ghs/post.h>
#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 <xsde/c/compilers/vc-8/pre.h>
+# endif
+#endif
+
#if defined(__ghs__) || defined(__ghs) || defined(ghs)
# include <xsde/c/compilers/ghs/pre.h>
#endif