OGR
ogr_expat.h
00001 /******************************************************************************
00002  * $Id: ogr_expat.h 18063 2009-11-21 21:11:49Z warmerdam $
00003  *
00004  * Project:  OGR
00005  * Purpose:  Convenience function for parsing with Expat library
00006  * Author:   Even Rouault, even dot rouault at mines dash paris dot org
00007  *
00008  ******************************************************************************
00009  * Copyright (c) 2009, Even Rouault
00010  *
00011  * Permission is hereby granted, free of charge, to any person obtaining a
00012  * copy of this software and associated documentation files (the "Software"),
00013  * to deal in the Software without restriction, including without limitation
00014  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00015  * and/or sell copies of the Software, and to permit persons to whom the
00016  * Software is furnished to do so, subject to the following conditions:
00017  *
00018  * The above copyright notice and this permission notice shall be included
00019  * in all copies or substantial portions of the Software.
00020  *
00021  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00022  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00023  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00024  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00025  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00026  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00027  * DEALINGS IN THE SOFTWARE.
00028  ****************************************************************************/
00029 
00030 #ifndef OGR_EXPATH_INCLUDED
00031 #define OGR_EXPATH_INCLUDED
00032 
00033 #ifdef HAVE_EXPAT
00034 
00035 #include "cpl_port.h"
00036 #include <expat.h>
00037 
00038 /* Compatibility stuff for expat >= 1.95.0 and < 1.95.7 */
00039 #ifndef XMLCALL
00040 #define XMLCALL
00041 #endif
00042 #ifndef XML_STATUS_OK
00043 #define XML_STATUS_OK    1
00044 #define XML_STATUS_ERROR 0
00045 #endif
00046 
00047 /* XML_StopParser only available for expat >= 1.95.8 */
00048 #if !defined(XML_MAJOR_VERSION) || (XML_MAJOR_VERSION * 10000 + XML_MINOR_VERSION * 100 + XML_MICRO_VERSION) < 19508
00049 #define XML_StopParser(parser, resumable)
00050 #warning "Expat version is too old and does not have XML_StopParser. Corrupted files could hang OGR"
00051 #endif
00052 
00053 /* Only for internal use ! */
00054 XML_Parser CPL_DLL OGRCreateExpatXMLParser(void);
00055 
00056 #endif /* HAVE_EXPAT */
00057 
00058 #endif /* OGR_EXPATH_INCLUDED */

Generated for GDAL by doxygen 1.7.5.