2 May 2006 15:26
_CRT_SECURE_NO_DEPRECATE macro redefinition
Bob Marinier <rmarinie <at> eecs.umich.edu>
2006-05-02 13:26:38 GMT
2006-05-02 13:26:38 GMT
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 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo(Continue reading)


RSS Feed