[Python-Dev] Suggestion/ feature request
Julian
julvar at tamu.edu
Mon Nov 13 06:27:49 CET 2006
Hello,
I am using python with swig and I get a lot of macro redefinition warnings
like so:
warning C4005: '_CRT_SECURE_NO_DEPRECATE' : macro redefinition
In the file - pyconfig.h - rather than the following lines, I was wondering
if it would be more reasonable to use #ifdef statements as shown in the
bottom of the email...
#define _CRT_SECURE_NO_DEPRECATE 1
#define _CRT_NONSTDC_NO_DEPRECATE 1
#if !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif
#if !defined(_CRT_NONSTDC_NO_DEPRECATE)
# define _CRT_NONSTDC_NO_DEPRECATE
#endif
Just a suggestion...
Thanks for reading!
Julian.
More information about the Python-Dev
mailing list