shithub: dumb

Download patch

ref: 97ef9342913d3ea48e8682bf80a3154631fd481d
parent: 2069bbc7ae0aa2b395b844f3085db5b3b989d8fc
author: Chris Moeller <kode54@gmail.com>
date: Fri Aug 15 02:10:31 EDT 2014

Fix for MSVC 2013, which now provides its own log2

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -3976,7 +3976,7 @@
 	playing->sample_vibrato_time += playing->sample->vibrato_speed;
 }
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && _MSC_VER < 1800
 static float log2(float x) {return (float)log(x)/(float)log(2.0f);}
 #endif