File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,17 @@ DLLEXPORT void xml6_gbl_os_thread_set_tag_expansion(int flag) {
67
67
}
68
68
69
69
DLLEXPORT int xml6_gbl_os_thread_get_keep_blanks (void ) {
70
+ #ifdef XML6_GBL_COMPAT_KEEP_BLANKS
70
71
return xmlKeepBlanksDefaultValue ;
72
+ #else
73
+ return -1 ;
74
+ #endif
71
75
}
72
76
73
77
DLLEXPORT void xml6_gbl_os_thread_set_keep_blanks (int flag ) {
78
+ #ifdef XML6_GBL_COMPAT_KEEP_BLANKS
74
79
xmlKeepBlanksDefaultValue = flag ;
80
+ #endif
75
81
}
76
82
77
83
DLLEXPORT void xml6_gbl_os_thread_xml_free (void * obj ) {
Original file line number Diff line number Diff line change 8
8
# define XML6_GBL_COMPAT_OLD_ERRORS 1
9
9
#endif
10
10
11
+ #if LIBXML_VERSION < 21400
12
+ # define XML6_GBL_COMPAT_KEEP_BLANKS 1
13
+ #endif
11
14
12
15
DLLEXPORT void xml6_gbl_init (void );
13
16
You can’t perform that action at this time.
0 commit comments