update Wed Dec 16 18:37:00 PST 2009
[pkgsrc.git] / graphics / enblend-enfuse / patches / patch-ab
1 $NetBSD: patch-ab,v 1.2 2009/12/16 21:28:35 adam Exp $
2
3 --- src/enfuse.cc.orig  2009-11-13 16:58:19.000000000 +0100
4 +++ src/enfuse.cc
5 @@ -54,8 +54,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 @@ -1341,6 +1345,8 @@ int main(int argc, char** argv)
19      // functions in float_cast.h will work properly.
20      // See changes in vigra numerictraits.hxx
21      _controlfp(_RC_NEAR, _MCW_RC);
22 +#elif defined(__NetBSD__)
23 +    //fpsetround(FE_TONEAREST);
24  #else
25      fesetround(FE_TONEAREST);
26  #endif