]> granicus.if.org Git - libexpat/commitdiff
Make it parse without XML_DTD.
authorJames Clark <jjc@jclark.com>
Mon, 11 Oct 1999 06:03:22 +0000 (06:03 +0000)
committerJames Clark <jjc@jclark.com>
Mon, 11 Oct 1999 06:03:22 +0000 (06:03 +0000)
expat/xmlparse/xmlparse.c

index d9df3a8ecf6ecfd7189d206ee8f40aef18be97ed..16c226d8525c88d53c359a75581f2778efb7e821 100755 (executable)
@@ -2624,7 +2624,9 @@ doProlog(XML_Parser parser,
       case XML_TOK_PARAM_ENTITY_REF:
        break;
       default:
+#ifdef XML_DTD
        if (role != XML_ROLE_IGNORE_SECT)
+#endif /* XML_DTD */
          reportDefault(parser, enc, s, next);
       }
     }