]> granicus.if.org Git - python/commit
Don't use defined() in C preprocessor macros
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 3 Sep 2015 19:30:26 +0000 (21:30 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 3 Sep 2015 19:30:26 +0000 (21:30 +0200)
commit528a9ab1f0c93d8dabc2b97b39e7252af7372456
tree6de14cb5fa70752d47f312f1a3da5c762715176e
parent479fea63e1b321a8fe47af1bb62e87f47b6c45c0
Don't use defined() in C preprocessor macros

The ICC compiler doesn't seem to support defined() in macro expansion. Example
of warning:

warning #3199: "defined" is always false in a macro expansion in Microsoft mode
Modules/posixmodule.c