Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/sanear.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Marsev <alex.marsev@gmail.com>2016-02-21 10:26:37 +0300
committerAlex Marsev <alex.marsev@gmail.com>2016-02-21 10:44:47 +0300
commit37466a4ba548c92de6b2521b1574c7128cc7f207 (patch)
tree88a4526e0bb16c37ce0cf0614bc40ee923ba2138
parent1d79747166c0d7524f62631c67f205187178745a (diff)
Inject snprintf() into rubberband
Needed for VS2013. Probably temporary solution, will try to talk with rubberband upstream.
-rw-r--r--dll/src/rubberband.vcxproj4
-rw-r--r--dll/src/snprintf.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/dll/src/rubberband.vcxproj b/dll/src/rubberband.vcxproj
index 4c5bda0..d4b0773 100644
--- a/dll/src/rubberband.vcxproj
+++ b/dll/src/rubberband.vcxproj
@@ -74,7 +74,9 @@
<ClCompile Include="rubberband\src\audiocurves\SpectralDifferenceAudioCurve.cpp" />
<ClCompile Include="rubberband\src\base\Profiler.cpp" />
<ClCompile Include="rubberband\src\dsp\AudioCurveCalculator.cpp" />
- <ClCompile Include="rubberband\src\dsp\FFT.cpp" />
+ <ClCompile Include="rubberband\src\dsp\FFT.cpp">
+ <ForcedIncludeFiles Condition="'$(PlatformToolsetVersion)'=='120'">..\snprintf.h</ForcedIncludeFiles>
+ </ClCompile>
<ClCompile Include="rubberband\src\dsp\Resampler.cpp" />
<ClCompile Include="rubberband\src\kissfft\kiss_fft.c" />
<ClCompile Include="rubberband\src\kissfft\kiss_fftr.c" />
diff --git a/dll/src/snprintf.h b/dll/src/snprintf.h
new file mode 100644
index 0000000..09fb5b2
--- /dev/null
+++ b/dll/src/snprintf.h
@@ -0,0 +1,3 @@
+#pragma once
+#include <stdio.h>
+#define snprintf sprintf_s