From: Daniel Jacobowitz Date: Tue, 3 Oct 2006 15:54:01 +0000 (+0000) Subject: * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2d483c4477a03591f3b05a877560ce620990b7c;p=binutils-gdb.git * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default definitions. * xml-support.c (XML_STATUS_OK, XML_STATUS_ERROR): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3eb2c909600..c402098ec91 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2006-10-03 Daniel Jacobowitz + + * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default + definitions. + * xml-support.c (XML_STATUS_OK, XML_STATUS_ERROR): Likewise. + 2006-09-22 Daniel Jacobowitz * remote.c (remote_write_bytes_aux): Doc fix. diff --git a/gdb/memory-map.c b/gdb/memory-map.c index 01171c10fd0..e3f8a805d58 100644 --- a/gdb/memory-map.c +++ b/gdb/memory-map.c @@ -49,6 +49,11 @@ parse_memory_map (const char *memory_map) #include "xml-support.h" #include +#ifndef XML_STATUS_OK +# define XML_STATUS_OK 1 +# define XML_STATUS_ERROR 0 +#endif + /* Internal parsing data passed to all Expat callbacks. */ struct memory_map_parsing_data { diff --git a/gdb/xml-support.c b/gdb/xml-support.c index 0b67e6a9bd3..54b0c9be526 100644 --- a/gdb/xml-support.c +++ b/gdb/xml-support.c @@ -33,6 +33,11 @@ #include "gdb_string.h" +#ifndef XML_STATUS_OK +# define XML_STATUS_OK 1 +# define XML_STATUS_ERROR 0 +#endif + /* Returns the value of attribute ATTR from expat attribute list ATTRLIST. If not found, throws an exception. */