]> git.mxchange.org Git - simgear.git/blobdiff - simgear/xml/easyxml.cxx
Use plib rad/degrees conversion constants.
[simgear.git] / simgear / xml / easyxml.cxx
index 81038fec1a931b043aa12951cca6d6607ddbd6d3..ab97d2180f8267b7df747dc09bf7b6f15605dcfd 100644 (file)
@@ -1,5 +1,13 @@
 // easyxml.cxx - implementation of EasyXML interfaces.
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <simgear/compiler.h>
+
+#include <string.h>            // strcmp()
+
 #include "easyxml.hxx"
 #include "xmlparse.h"
 
@@ -220,6 +228,10 @@ readXML (istream &input, XMLVisitor &visitor)
     }
   }
 
+                               // Verify end of document.
+  if (!XML_Parse(parser, buf, 0, true))
+    retval = false;
+
   if (retval)
     visitor.endXML();