[goffice: 1/2] Update go-libxml-extras.h



commit 3f41fade33add97e36d1ab029a927acd5c96df82
Author: Ludovic Rousseau <ludovic rousseau gmail com>
Date:   Sun Jun 3 12:34:31 2018 +0000

    Update go-libxml-extras.h
    
    Fix compiler warning:
    /usr/local/Cellar/goffice/0.10.41/include/libgoffice-0.10/goffice/utils/go-libxml-extras.h:50:5: warning:
          'GOFFICE_WITH_LONG_DOUBLE' is not defined, evaluates to 0 [-Wundef]
    #if GOFFICE_WITH_LONG_DOUBLE
        ^
    1 warning generated.

 goffice/utils/go-libxml-extras.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/goffice/utils/go-libxml-extras.h b/goffice/utils/go-libxml-extras.h
index 987b90fe..41d98525 100644
--- a/goffice/utils/go-libxml-extras.h
+++ b/goffice/utils/go-libxml-extras.h
@@ -47,7 +47,7 @@ xmlNode *go_xml_get_child_by_name_no_lang (xmlNode const *tree, char const *name
 xmlNode *go_xml_get_child_by_name_by_lang (xmlNode const *tree, char const *name);
 
 void       go_xml_out_add_double (GsfXMLOut *output, char const *id, double d);
-#if GOFFICE_WITH_LONG_DOUBLE
+#ifdef GOFFICE_WITH_LONG_DOUBLE
 void       go_xml_out_add_long_double (GsfXMLOut *output, char const *id, long double ld);
 #endif
 void      go_xml_out_add_color (GsfXMLOut *out, char const *id, GOColor c);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]