#define _CPP_VECTOR 1
#endif
+#ifdef __cplusplus
#include <vector>
+#endif
+
#include <math.h>
#include <float.h>
#include <direct.h>
// throw()
#ifndef __THROW
+#ifdef __cplusplus
#define __THROW throw()
+#else
+#define __THROW
+#endif
#endif
// round().... Unlike Linux, Windows doesn't seem to support the
#endif /* _MODE_T_ */
// int64 abs()
+#ifdef __cplusplus // Normal 'C' doesn't permit over-ridden functions !!
inline uint64_t abs(int64_t val)
{
if (val < 0)
else
return val;
}
+#endif
// fmin() and fmax()
#define fmin(a, b) min((double)a, (double)b)
// #include the main headers for Ardour MSVC
+#ifdef __cplusplus
#if defined(BUILDING_PBD) || defined(PBD_IS_IN_WIN_STATIC_LIB)
#include <pbd/msvc_pbd.h>
#endif
#if defined(BUILDING_RUBBERBAND) || defined(RUBBERBAND_IS_IN_WIN_STATIC_LIB)
#include <rubberband/msvc_rubberband.h>
#endif
+#endif // __cplusplus
#endif /* __ardour_msvc_extensions_h__ */