summaryrefslogtreecommitdiff
path: root/gdb/gdb_expat.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-10-05 19:42:31 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-10-05 19:42:31 +0000
commit958f4abf2e5ac829ca6f7b2e8e4732152eeff5a8 (patch)
treed289e728352566547dd41dd6a605527705b86f95 /gdb/gdb_expat.h
parente5df30fe7a5ab04c7b3160f2a1ad1164111078b9 (diff)
downloadgdb-958f4abf2e5ac829ca6f7b2e8e4732152eeff5a8.tar.gz
* Makefile.in (gdb_expat_h): New.
(xml_support_h): Add gdb_expat.h dependency. (memory-map.o, xml-support.o): Likewise. * gdb_expat.h: New file. * xml-support.h: Include it. * memory-map.c, xml-support.c: Likewise. Remove XML_STATUS_OK definitions.
Diffstat (limited to 'gdb/gdb_expat.h')
-rw-r--r--gdb/gdb_expat.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/gdb/gdb_expat.h b/gdb/gdb_expat.h
new file mode 100644
index 00000000000..b3301826b80
--- /dev/null
+++ b/gdb/gdb_expat.h
@@ -0,0 +1,35 @@
+/* Slightly more portable version of <expat.h>.
+
+ Copyright (C) 2006
+ Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
+
+#if !defined(GDB_EXPAT_H)
+#define GDB_EXPAT_H
+
+#include <expat.h>
+
+/* Expat 1.95.x does not define these; this is the definition
+ recommended by the expat 2.0 headers. */
+#ifndef XML_STATUS_OK
+# define XML_STATUS_OK 1
+# define XML_STATUS_ERROR 0
+#endif
+
+#endif /* !defined(GDB_EXPAT_H) */