Fixes for solaris compiling
#include <algorithm>
#include <stdio.h>
#include <algorithm>
#include <stdio.h>
+#ifdef sun
+#include "ieeefp.h"
+#endif
+
// just use default rounding for platforms where its not available
#ifndef round
#define round(x) (x)
// just use default rounding for platforms where its not available
#ifndef round
#define round(x) (x)
+#ifdef sun
+#include "ieeefp.h"
+#endif
+
// weight and triangle index
class mvmIndexWeight {
public:
// weight and triangle index
class mvmIndexWeight {
public:
// sirdude fix for solaris
#if !defined(linux) && defined(sun)
// sirdude fix for solaris
#if !defined(linux) && defined(sun)
#ifndef expf
#define expf(x) exp((double)(x))
#endif
#ifndef expf
#define expf(x) exp((double)(x))
#endif