diff options
author | matttyson <mtyson@mtyson.id.au> | 2023-05-02 16:23:44 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 08:23:44 +0200 |
commit | 755c4944203316fab2b179afb326177ec3b71119 (patch) | |
tree | 09e78c4d4180c975d15ba1afbe46588a240c1f33 | |
parent | d62bc6d633bb30d9c9656469f2c553b4e77de9c9 (diff) | |
download | cython-755c4944203316fab2b179afb326177ec3b71119.tar.gz |
Fix usage of _MSC_VER macro (GH-5417)
Change #if to #ifdef so we don't get undefined macro warnings on non microsoft compilers.
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index c3b46c09c..9a126b3ea 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -2133,7 +2133,7 @@ static void __Pyx_FastGilFuncInit(void) { ///////////////////// UtilityCodePragmas ///////////////////////// -#if _MSC_VER +#ifdef _MSC_VER #pragma warning( push ) /* Warning 4127: conditional expression is constant * Cython uses constant conditional expressions to allow in inline functions to be optimized at @@ -2144,6 +2144,6 @@ static void __Pyx_FastGilFuncInit(void) { ///////////////////// UtilityCodePragmasEnd ////////////////////// -#if _MSV_VER +#ifdef _MSC_VER #pragma warning( pop ) /* undo whatever Cython has done to warnings */ #endif |