src/terralib/binding/capi/Config.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
3 
4  This file is part of the TerraLib - a Framework for building GIS enabled
5  applications.
6 
7  TerraLib is free software: you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation, either version 3 of the License,
10  or (at your option) any later version.
11 
12  TerraLib is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with TerraLib. See COPYING. If not, write to
19  TerraLib Team at <terralib-team@terralib.org>.
20 */
21 
22 #define TE_FALSE 0
23 #define TE_TRUE 1
24 #define TE_ERROR -1
25 #define TE_OK -2
26 
27 #ifdef WIN32
28  #ifdef TECAPISTATIC
29  #define TECAPIEXPORT /* Don't need to export/import... it is a static library */
30  #elif TECAPIDLL
31  #define TECAPIEXPORT __declspec(dllexport) /* export DLL information */
32  #else
33  #define TECAPIEXPORT __declspec(dllimport) /* import DLL information */
34  #endif
35 #else
36  #define TECAPIEXPORT
37 #endif