GDAL

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

ogr_expat.h
1 /******************************************************************************
2 * $Id: ogr_expat.h 27044 2014-03-16 23:41:27Z rouault $
3 *
4 * Project: OGR
5 * Purpose: Convenience function for parsing with Expat library
6 * Author: Even Rouault, even dot rouault at mines dash paris dot org
7 *
8 ******************************************************************************
9 * Copyright (c) 2009, Even Rouault <even dot rouault at mines-paris dot org>
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
28 ****************************************************************************/
29
30 #ifndef OGR_EXPATH_INCLUDED
31 #define OGR_EXPATH_INCLUDED
32
33 #ifdef HAVE_EXPAT
34
35 #include "cpl_port.h"
36 #include <expat.h>
37
38 /* Compatibility stuff for expat >= 1.95.0 and < 1.95.7 */
39 #ifndef XMLCALL
40 #define XMLCALL
41 #endif
42 #ifndef XML_STATUS_OK
43 #define XML_STATUS_OK 1
44 #define XML_STATUS_ERROR 0
45 #endif
46
47 /* XML_StopParser only available for expat >= 1.95.8 */
48 #if !defined(XML_MAJOR_VERSION) || (XML_MAJOR_VERSION * 10000 + XML_MINOR_VERSION * 100 + XML_MICRO_VERSION) < 19508
49 #define XML_StopParser(parser, resumable)
50 #warning "Expat version is too old and does not have XML_StopParser. Corrupted files could hang OGR"
51 #endif
52
53 /* Only for internal use ! */
54 XML_Parser CPL_DLL OGRCreateExpatXMLParser(void);
55
56 #endif /* HAVE_EXPAT */
57
58 #endif /* OGR_EXPATH_INCLUDED */
cpl_port.h
Core portability definitions for CPL.

Generated for GDAL by 1.8.8.