diff --git a/SWIG/Lib/swiglabels.swg b/SWIG/Lib/swiglabels.swg index f3a276906..8bd4b3dfd 100644 --- a/SWIG/Lib/swiglabels.swg +++ b/SWIG/Lib/swiglabels.swg @@ -81,3 +81,8 @@ # define SWIGSTDCALL # endif #endif + +/* 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