1
/******************************************************************************
2
* $Id: sidx_config.h 1359 2009-07-31 04:44:50Z hobu $
4
* Project: libsidx - A C API wrapper around libspatialindex
5
* Purpose: C API configuration
6
* Author: Howard Butler, hobu.inc@gmail.com
8
******************************************************************************
9
* Copyright (c) 2009, Howard Butler
11
* All rights reserved.
13
* This library is free software; you can redistribute it and/or modify it under
14
* the terms of the GNU Lesser General Public License as published by the Free
15
* Software Foundation; either version 2.1 of the License, or (at your option)
18
* This library is distributed in the hope that it will be useful, but WITHOUT
19
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
23
* You should have received a copy of the GNU Lesser General Public License
24
* along with this library; if not, write to the Free Software Foundation, Inc.,
25
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26
****************************************************************************/
28
#ifndef SIDX_CONFIG_H_INCLUDED
29
#define SIDX_CONFIG_H_INCLUDED
33
typedef __int8 int8_t;
34
typedef __int16 int16_t;
35
typedef __int32 int32_t;
36
typedef __int64 int64_t;
37
typedef unsigned __int8 uint8_t;
38
typedef unsigned __int16 uint16_t;
39
typedef unsigned __int32 uint32_t;
40
typedef unsigned __int64 uint64_t;
43
#define STRDUP _strdup
44
#include "SpatialIndex.h"
50
#define SIDX_THREAD __thread
51
#include <SpatialIndex.h>
76
RT_InvalidIndexType = -99
83
RT_InvalidStorageType = -99
91
RT_InvalidIndexVariant = -99
96
# define IDX_C_START extern "C" {
103
typedef Index *IndexH;
104
typedef SpatialIndex::IData *IndexItemH;
105
typedef Tools::PropertySet *IndexPropertyH;
108
#if defined(_MSC_VER)
109
# define SIDX_C_DLL __declspec(dllexport)
111
# if defined(USE_GCC_VISIBILITY_FLAG)
112
# define SIDX_C_DLL __attribute__ ((visibility("default")))