gdb_expat.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Slightly more portable version of <expat.h>.
  2. Copyright (C) 2006-2022 Free Software Foundation, Inc.
  3. This file is part of GDB.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #if !defined(GDB_EXPAT_H)
  15. #define GDB_EXPAT_H
  16. #include <expat.h>
  17. /* Expat 1.95.x does not define these; this is the definition
  18. recommended by the expat 2.0 headers. */
  19. #ifndef XML_STATUS_OK
  20. # define XML_STATUS_OK 1
  21. # define XML_STATUS_ERROR 0
  22. #endif
  23. /* Old versions of expat do not define this macro, so define it
  24. as void. */
  25. #ifndef XMLCALL
  26. #define XMLCALL
  27. #endif
  28. #endif /* !defined(GDB_EXPAT_H) */