mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 11:04:51 -04:00
27 lines
648 B
Plaintext
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
|