From: Bob M. <rma...@ee...> - 2006-05-02 13:22:25
|
In the SWIG-generated code, the following block is created: /* 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 The "problem" is that the headers I'm wrapping already define _CRT_SECURE_NO_DEPRECATE, so this generates a warning: warning C4005: '_CRT_SECURE_NO_DEPRECATE' : macro redefinition Can this be changed to check if _CRT_SECURE_NO_DEPRECATE is already defined, e.g. /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif Thanks, Bob |