kexi
kexidb_export.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl> 00003 Copyright (C) 2005 Martin Ellis <martin.ellis@kdemail.net> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this program; see the file COPYING. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 */ 00020 #ifndef _KEXIDB_EXPORT_H_ 00021 #define _KEXIDB_EXPORT_H_ 00022 00023 #ifdef __cplusplus 00024 # include <kdeversion.h> /* this will also include <kdelibs_export.h>, if available */ 00025 #endif 00026 /* KDE_EXPORT will be defined multiple times without this on kdelibs 3.3 (tested on 3.3.1) */ 00027 #include <kdemacros.h> 00028 00029 /* workaround for KDElibs < 3.2 on !win32 */ 00030 #ifndef KDE_EXPORT 00031 # define KDE_EXPORT 00032 #endif 00033 00034 /* TODO: #include <koffice_export.h> ??? */ 00035 #ifdef MAKE_KEXI_DB_LIB 00036 # define KEXI_DB_EXPORT KDE_EXPORT 00037 #elif defined(KDE_MAKE_LIB) 00038 # define KEXI_DB_EXPORT KDE_IMPORT 00039 #else 00040 # define KEXI_DB_EXPORT 00041 #endif 00042 00043 #ifdef MAKE_KEXIMIGR_LIB 00044 # define KEXIMIGR_EXPORT KDE_EXPORT 00045 #elif defined(KDE_MAKE_LIB) 00046 # define KEXIMIGR_EXPORT KDE_IMPORT 00047 #else 00048 # define KEXIMIGR_EXPORT //for apps 00049 #endif 00050 00051 /* -- compile-time settings -- */ 00052 #if defined(Q_WS_WIN) || defined(KEXI_OPTIONS) 00053 /* defined in a .pro file or 'KEXI_OPTIONS' env. variable */ 00054 #else 00055 00056 #endif 00057 00058 /* Might want to add GUI defines here if widgets are to be 00059 * distributed as part of kexidb - mart */ 00060 00061 #endif //KEXI_EXPORT_H