forked from pool/pugixml
5c674182dd
* New integer parsing/formatting implementation + Functions that convert from and to integers (e.g. as_int/set_value) do not rely on CRT any more. + New implementation is 3-5x faster and is always correct wrt overflow or underflow. This is a behavior change - where previously as_uint() would return UINT_MAX on a value "-1", it now returns 0. * New features + XPath objects (xpath_query, xpath_node_set, xpath_variable_set) are now movable if your compiler supports C++11. Additionally, xpath_variable_set is copyable. + Added format_indent_attributes that makes the resulting XML friendlier to line diff/merge tools. + Added a variant of xml_node::attribute function with a hint that can improve lookup performance. + Custom allocation functions are now allowed (but not required) to throw instead of returning a null pointer. * Bug fixes + Fix Clang 3.7 crashes in out-of-memory cases (C++ DR 1748) + Fix xpath_node_set assignment to provide strong exception guarantee + Fix saving for custom xml_writer implementations that can throw from write() - Add pugixml-config.patch to enable long long support, works better than enabling via build flags. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/pugixml?expand=0&rev=7
14 lines
357 B
Diff
14 lines
357 B
Diff
Index: pugixml-1.7/src/pugiconfig.hpp
|
|
===================================================================
|
|
--- pugixml-1.7.orig/src/pugiconfig.hpp
|
|
+++ pugixml-1.7/src/pugiconfig.hpp
|
|
@@ -44,7 +44,7 @@
|
|
// #define PUGIXML_HEADER_ONLY
|
|
|
|
// Uncomment this to enable long long support
|
|
-// #define PUGIXML_HAS_LONG_LONG
|
|
+#define PUGIXML_HAS_LONG_LONG
|
|
|
|
#endif
|
|
|