kexi

kexidb_export.h
1/* This file is part of the KDE project
2 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
3 Copyright (C) 2005 Martin Ellis <martin.ellis@kdemail.net>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this program; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20#ifndef _KEXIDB_EXPORT_H_
21#define _KEXIDB_EXPORT_H_
22
23#ifdef __cplusplus
24# include <tdeversion.h> /* this will also include <tdelibs_export.h>, if available */
25#endif
26/* TDE_EXPORT will be defined multiple times without this on tdelibs 3.3 (tested on 3.3.1) */
27#include <tdemacros.h>
28
29/* workaround for KDElibs < 3.2 on !win32 */
30#ifndef TDE_EXPORT
31# define TDE_EXPORT
32#endif
33
34/* TODO: #include <koffice_export.h> ??? */
35#ifdef MAKE_KEXI_DB_LIB
36# define KEXI_DB_EXPORT TDE_EXPORT
37#elif defined(KDE_MAKE_LIB)
38# define KEXI_DB_EXPORT KDE_IMPORT
39#else
40# define KEXI_DB_EXPORT
41#endif
42
43#ifdef MAKE_KEXIMIGR_LIB
44# define KEXIMIGR_EXPORT TDE_EXPORT
45#elif defined(KDE_MAKE_LIB)
46# define KEXIMIGR_EXPORT KDE_IMPORT
47#else
48# define KEXIMIGR_EXPORT //for apps
49#endif
50
51/* -- compile-time settings -- */
52#if defined(TQ_WS_WIN) || defined(KEXI_OPTIONS)
53/* defined in a .pro file or 'KEXI_OPTIONS' env. variable */
54#else
55
56#endif
57
58/* Might want to add GUI defines here if widgets are to be
59 * distributed as part of kexidb - mart */
60
61#endif //KEXI_EXPORT_H