summaryrefslogtreecommitdiff
path: root/Examples/csharp/variables/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/csharp/variables/example.c')
-rw-r--r--Examples/csharp/variables/example.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/csharp/variables/example.c b/Examples/csharp/variables/example.c
index ce44fb3ca..aa4ffe9b3 100644
--- a/Examples/csharp/variables/example.c
+++ b/Examples/csharp/variables/example.c
@@ -2,6 +2,11 @@
/* I'm a file containing some C global variables */
+/* 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 <stdio.h>
#include <stdlib.h>
#include "example.h"