2013-09-26 17:14:40 +02:00

27 lines
648 B
Plaintext

$NetBSD: patch-ac,v 1.3 2012/12/09 00:11:42 adam Exp $
--- src/enblend.cc.orig 2012-12-08 08:23:59.000000000 +0000
+++ src/enblend.cc
@@ -51,8 +51,12 @@ extern "C" char *optarg;
extern "C" int optind;
#ifndef _MSC_VER
+#ifdef __NetBSD__
+//#include <ieeefp.h>
+#else
#include <fenv.h>
#endif
+#endif
#include <signal.h>
#include <stdlib.h>
@@ -1657,6 +1661,8 @@ int main(int argc, char** argv)
// functions in float_cast.h will work properly.
// See changes in vigra numerictraits.hxx
_controlfp(_RC_NEAR, _MCW_RC);
+#elif defined(__NetBSD__)
+ //fpsetround(FE_TONEAREST);
#else
fesetround(FE_TONEAREST);
#endif