[rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

Peter pspiegler at gmx.de
Sat May 10 20:22:38 CEST 2014

Hi Tobi,
to comment out is only valid for Platform Toolset VS2013 ( possible also
2012 which I doesn't have installed). In VS2013 there are many additional
functions in math.h ( also round).
This work for VS2010 and VS2013:
#if _MSC_VER < 1800  
__inline   int round(double a){ int x = (a + 0.5); return x; }

//MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013)
//MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012)
//MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010)
//MSVC++ 9.0  _MSC_VER == 1500 (Visual Studio 2008)
so rrd can build for a specific MSVC Version.

To create a patch, I have to read how to do this. I downloaded only the


View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Compile-rrdtool-1-4-8-in-Visual-Studio-2013-tp7582052p7582054.html
Sent from the RRDtool Developers Mailinglist mailing list archive at Nabble.com.

More information about the rrd-developers mailing list