Patch #17666 by Vladimi<C2>r Marek

Fixes for solaris compiling
This commit is contained in:
Ton Roosendaal 2008-09-22 15:59:04 +00:00
parent 627c6178f9
commit 558d7499a6
3 changed files with 9 additions and 0 deletions

@ -13,6 +13,10 @@
#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)

@ -27,6 +27,10 @@
#endif
#endif
#ifdef sun
#include "ieeefp.h"
#endif
// weight and triangle index
class mvmIndexWeight {
public:

@ -100,6 +100,7 @@
// sirdude fix for solaris
#if !defined(linux) && defined(sun)
#include "ieeefp.h"
#ifndef expf
#define expf(x) exp((double)(x))
#endif