Skip to content

Commit a2cbefb

Browse files
committed
Windows: use fmod instead of remainder with VC++ 9.0
This only affect python 2.7 build on Windows.
1 parent c7b5f3c commit a2cbefb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Release notes
55
---------------------
66

77
- Python 3 compatible (CI, code, tests)
8+
- Code: use `std::fmod` instead of `std::remainder` only for Visual C++ 9.0 (Windows & python 2.7)
89
- Doc: add a release section
910
- Setup: use ``bumpversion`` to bump the version easily
1011

pypitch/pitch.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121
#ifndef NOMINMAX
2222
#define NOMINMAX
2323
#endif
24+
// Visual Studio C++ 9.0 / python 2.7
25+
#if (_MSC_VER == 1500)
2426
#define remainder fmod
2527
#endif
28+
#endif
2629

2730
#include "pitch.hpp"
2831

0 commit comments

Comments
 (0)