summaryrefslogtreecommitdiff
path: root/Examples/csharp/reference/example.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/csharp/reference/example.cxx')
-rw-r--r--Examples/csharp/reference/example.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/csharp/reference/example.cxx b/Examples/csharp/reference/example.cxx
index 8bc264b02..8a513bf49 100644
--- a/Examples/csharp/reference/example.cxx
+++ b/Examples/csharp/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>