]> granicus.if.org Git - graphviz/commitdiff
cairo seems to be free of fpu errors these daya
authorellson <devnull@localhost>
Thu, 6 Sep 2007 19:50:11 +0000 (19:50 +0000)
committerellson <devnull@localhost>
Thu, 6 Sep 2007 19:50:11 +0000 (19:50 +0000)
plugin/pango/gvrender_pango.c

index b114ebee01738518de3885144ffe3415d541f3e3..f322b4f2de1f6bf74d14dc99dcda4b3f5b1110ef 100644 (file)
 #define __USE_GNU
 #endif
 
+#if 0
 # include <fenv.h>
 #elif HAVE_FPU_CONTROL_H
 # include <fpu_control.h>
 #elif HAVE_SYS_FPU_H
 # include <sys/fpu.h>
 #endif
+#endif
 
 #include "gvplugin_render.h"
 #include "gvplugin_device.h"
@@ -95,10 +97,12 @@ static int dotted_len = ARRAY_SIZE(dotted);
 #include <cairo-glitz.h>
 #endif
 
+#if 0
 #if defined(HAVE_FENV_H) && defined(HAVE_FESETENV) && defined(HAVE_FEGETENV) && defined(HAVE_FEENABLEEXCEPT)
 /* place to save fp environment temporarily */
 static fenv_t fenv; /* FIXME - not thread safe */
 #endif
+#endif
 
 static void cairogen_set_color(cairo_t * cr, gvcolor_t * color)
 {
@@ -119,6 +123,7 @@ static void cairogen_begin_page(GVJ_t * job)
     cairo_t *cr = NULL;
     cairo_surface_t *surface;
 
+#if 0
 #if defined(HAVE_FENV_H) && defined(HAVE_FESETENV) && defined(HAVE_FEGETENV) && defined(HAVE_FEDISABLEEXCEPT)
     /* cairo generates FE_INVALID and other exceptions we 
      * want to ignore for now.  Save the current fenv and
@@ -126,6 +131,7 @@ static void cairogen_begin_page(GVJ_t * job)
      * The fenv is restored in cairogen_end_graph  */
     fegetenv(&fenv);
     fedisableexcept(FE_ALL_EXCEPT);
+#endif
 #endif
 
     if (job->external_context && job->context) {
@@ -197,10 +203,12 @@ static void cairogen_end_page(GVJ_t * job)
        job->context = NULL;
     }
 
+#if 0
 #if defined HAVE_FENV_H && defined HAVE_FESETENV && defined HAVE_FEGETENV && defined(HAVE_FEENABLEEXCEPT)
     /* Restore FP environment */
     fesetenv(&fenv);
 #endif
+#endif
 }
 
 static void cairogen_textpara(GVJ_t * job, pointf p, textpara_t * para)