[Python-Dev] Suggestion/ feature request (original) (raw)
Julian julvar at tamu.edu
Mon Nov 13 06:27:49 CET 2006
- Previous message: [Python-Dev] Summer of Code: zipfile?
- Next message: [Python-Dev] Suggestion/ feature request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] Summer of Code: zipfile?
- Next message: [Python-Dev] Suggestion/ feature request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]