From bb59def1ca8a21f915cf636dd1e54957df981656 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 31 Jul 2013 20:08:43 -0400 Subject: [PATCH] fixes for windows branch build failures under linux. still does not build on linux, now due to taglib changes --- libs/evoral/src/ControlList.cpp | 7 +------ libs/evoral/src/Curve.cpp | 1 + libs/evoral/src/libsmf/smf_load.c | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/libs/evoral/src/ControlList.cpp b/libs/evoral/src/ControlList.cpp index 18803af348..ff624809e8 100644 --- a/libs/evoral/src/ControlList.cpp +++ b/libs/evoral/src/ControlList.cpp @@ -16,11 +16,6 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -// 'std::isnan()' is not available in MSVC. -#ifndef COMPILER_MSVC -using std::isnan; -#endif - #include #include #include @@ -817,7 +812,7 @@ ControlList::modify (iterator iter, double when, double val) (*iter)->when = when; (*iter)->value = val; - if (isnan (val)) { + if (::isnan (val)) { abort (); } diff --git a/libs/evoral/src/Curve.cpp b/libs/evoral/src/Curve.cpp index a813eb7062..44fc48f728 100644 --- a/libs/evoral/src/Curve.cpp +++ b/libs/evoral/src/Curve.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include diff --git a/libs/evoral/src/libsmf/smf_load.c b/libs/evoral/src/libsmf/smf_load.c index 25d95baecd..fed4d28bb7 100644 --- a/libs/evoral/src/libsmf/smf_load.c +++ b/libs/evoral/src/libsmf/smf_load.c @@ -123,7 +123,7 @@ parse_mthd_header(smf_t *smf) return (-1); } - tmp_mthd = (chunk_header_struct*)smf->file_buffer; + tmp_mthd = (struct chunk_header_struct*)smf->file_buffer; if (!chunk_signature_matches(tmp_mthd, "MThd")) { g_critical("SMF error: MThd signature not found, is that a MIDI file?");