Browse Source

* added XML_SAX2_MAGIC constant

git-svn-id: trunk@14056 -
ivost 15 years ago
parent
commit
d56dccfe47
1 changed files with 5 additions and 2 deletions
  1. 5 2
      packages/libxml/src/parser.inc

+ 5 - 2
packages/libxml/src/parser.inc

@@ -618,7 +618,7 @@
  * Returns 1 if true
  *)
   hasExternalSubsetSAXFunc = function(ctx: pointer): cint; EXTDECL;
-
+{$ENDIF}
 
 (************************************************************************
  *									*
@@ -630,8 +630,11 @@
  *
  * Special constant found in SAX2 blocks initialized fields
  *)
-{$DEFINE XML_SAX2_MAGIC := $DEEDBEAF}
+{$IFDEF CONST}
+  XML_SAX2_MAGIC = $DEEDBEAF;
+{$ENDIF}
 
+{$IFDEF TYPE}
 (**
  * startElementNsSAX2Func:
  * @ctx:  the user data (XML parser context)