Code

Corrected initialization order.
[inkscape.git] / src / dom / dom.h
index 540e7361c4286a7e220be32a93b4c87ddaec9bb9..21ea446696523ed3f72c92facf5a3fbce65aa801 100644 (file)
  * Then below, select one of the corresponding typedefs.
  */ 
 
-//#include <glibmm.h>
+#ifdef DOM_STANDALONE
 #include <string>
+#else
+#include <glibmm.h>
+#endif
 
 //# Unfortunate hack for a name collision
 #ifdef SEVERITY_ERROR
@@ -78,13 +81,14 @@ namespace dom
 /**
  * This is the org::w3c::dom::DOMString definition.
  * Which type do we want?
- */  
-//typedef Glib::ustring DOMString;
-//typedef gunichar XMLCh;
-
+ */
+#ifdef DOM_STANDALONE
 typedef std::string DOMString;
 typedef unsigned short XMLCh;
-
+#else
+typedef Glib::ustring DOMString;
+typedef gunichar XMLCh;
+#endif
 
 /**
  *  At least 64 bit time stamp value.