diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2016-05-17 15:21:30 -0700 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2016-05-17 15:21:30 -0700 |
commit | 46d3efc4ff9123c73889bcb54b2b200d6be39ff4 (patch) | |
tree | 9ce8dad4172095c64f6668915f63d4686a094215 /Cython/Utility/ModuleSetupCode.c | |
parent | c975662204754a42963ba5b293e3983937615056 (diff) | |
download | cython-46d3efc4ff9123c73889bcb54b2b200d6be39ff4.tar.gz |
Work around missing Cygwin truncl.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 4a4da444e..896a07ba6 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -316,6 +316,12 @@ static CYTHON_INLINE float __PYX_NAN() { } #endif +#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) +#define __Pyx_truncl trunc +#else +#define __Pyx_truncl truncl +#endif + /////////////// UtilityFunctionPredeclarations.proto /////////////// |