summaryrefslogtreecommitdiff
path: root/Examples/modula3/reference/example.cxx
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2006-03-05 00:38:54 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2006-03-05 00:38:54 +0000
commitc772286a5de85a5b7bad8d6b6e0f5c065d153891 (patch)
tree34c96f2a7ab8ab060ad96dd6c7720e3be8cf1bfe /Examples/modula3/reference/example.cxx
parenta86a9b3fb6115e8a31791fe491bb6a9795f9d474 (diff)
downloadswig-c772286a5de85a5b7bad8d6b6e0f5c065d153891.tar.gz
remove sprintf deprecated message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/modula3/reference/example.cxx')
-rw-r--r--Examples/modula3/reference/example.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/modula3/reference/example.cxx b/Examples/modula3/reference/example.cxx
index 2a63fbc52..649b0169c 100644
--- a/Examples/modula3/reference/example.cxx
+++ b/Examples/modula3/reference/example.cxx
@@ -1,5 +1,10 @@
/* File : example.cxx */
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
#include "example.h"
#include <stdio.h>
#include <stdlib.h>