GEOS  3.8.0dev
export.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2009 Ragi Y. Burhum <ragi@burhum.com>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************/
14 #ifndef GEOS_EXPORT_H
15 #define GEOS_EXPORT_H
16 
17 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || \
18  defined( __BCPLUSPLUS__) || defined( __MWERKS__)
19 
20 # if defined(GEOS_DLL_EXPORT)
21 # define GEOS_DLL __declspec(dllexport)
22 # elif defined(GEOS_DLL_IMPORT)
23 # define GEOS_DLL __declspec(dllimport)
24 # else
25 # define GEOS_DLL
26 # endif
27 #else
28 # define GEOS_DLL
29 #endif
30 
31 #endif
32 
33 #if defined(_MSC_VER)
34 # pragma warning(disable: 4251) // identifier : class type needs to have dll-interface to be used by clients of class type2
35 #endif