37b014f396fe7a871bd7d93903a6810998ba3d87
[pkgsrc.git] / graphics / enblend-enfuse / patches / patch-ab
1 $NetBSD: patch-ab,v 1.1.1.1 2009/09/01 14:39:28 adam Exp $
2
3 --- src/enfuse.cc.orig  2009-08-31 18:38:09.000000000 +0200
4 +++ src/enfuse.cc
5 @@ -62,8 +62,12 @@ extern "C" char *optarg;
6  extern "C" int optind;
7  
8  #ifndef _MSC_VER
9 +#ifdef __NetBSD__
10 +//#include <ieeefp.h>
11 +#else
12  #include <fenv.h>
13  #endif
14 +#endif
15  
16  #include <signal.h>
17  #include <stdlib.h>
18 @@ -279,8 +283,12 @@ int main(int argc, char** argv) {
19      // See changes in vigra numerictraits.hxx
20      _controlfp( _RC_NEAR, _MCW_RC );
21  #else
22 +#ifdef __NetBSD__
23 +//    fpsetround(FE_TONEAREST);
24 +#else
25      fesetround(FE_TONEAREST);
26  #endif
27 +#endif
28      
29  #ifndef _WIN32
30      sigemptyset(&SigintMask);