From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- win/kdelibs_export_win.h | 152 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 win/kdelibs_export_win.h (limited to 'win/kdelibs_export_win.h') diff --git a/win/kdelibs_export_win.h b/win/kdelibs_export_win.h new file mode 100644 index 000000000..064cc6484 --- /dev/null +++ b/win/kdelibs_export_win.h @@ -0,0 +1,152 @@ +/* + This file is part of the KDE libraries + Copyright (C) 2004 Jaroslaw Staniek + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include /* to avoid #includes */ + +#define KPATH_SEPARATOR ';' +#define popen _popen +#define pclose _pclose + +#define KDE_IMPORT __declspec(dllimport) + +#ifdef MAKE_KDECORE_LIB +# define KDECORE_EXPORT KDE_EXPORT +#else +# ifndef KDECORE_EXPORT +# define KDECORE_EXPORT KDE_IMPORT //for apps and other libs +# endif +#endif + +#ifdef MAKE_KDEWIN32_LIB +# define KDEWIN32_EXPORT KDE_EXPORT +#else +# define KDEWIN32_EXPORT KDE_IMPORT +#endif + +/* some classes, i.e. KDock* already use EXPORT_* macro: define it too */ +#ifdef MAKE_KDEUI_LIB +# define KDEUI_EXPORT KDE_EXPORT +# define EXPORT_DOCKCLASS KDE_EXPORT +#elif KDE_MAKE_LIB +# define KDEUI_EXPORT KDE_IMPORT +# define EXPORT_DOCKCLASS KDE_IMPORT /* for library build export docklass by default */ +#else +# define KDEUI_EXPORT +# define EXPORT_DOCKCLASS +#endif + +#ifdef MAKE_KDEFX_LIB +# define KDEFX_EXPORT KDE_EXPORT +#else +# define KDEFX_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KDEPRINT_LIB +# define KDEPRINT_EXPORT KDE_EXPORT +#else +# define KDEPRINT_EXPORT KDE_IMPORT +#endif + +#ifndef KIO_EXPORT +# ifdef MAKE_KIO_LIB +# define KIO_EXPORT KDE_EXPORT +# else +# define KIO_EXPORT KDE_IMPORT +# endif +#endif + +#ifdef MAKE_DCOP_LIB +# define DCOP_EXPORT KDE_EXPORT +#else +# define DCOP_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KPARTS_LIB +# define KPARTS_EXPORT KDE_EXPORT +#else +# define KPARTS_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KTEXTEDITOR_LIB +# define KTEXTEDITOR_EXPORT KDE_EXPORT +#else +# define KTEXTEDITOR_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KABC_LIB +# define KABC_EXPORT KDE_EXPORT +#else +# define KABC_EXPORT KDE_IMPORT +#endif + + +#ifdef MAKE_KVCARD_LIB +# define KVCARD_EXPORT KDE_EXPORT +#else +# define KVCARD_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KRESOURCES_LIB +# define KRESOURCES_EXPORT KDE_EXPORT +#else +# define KRESOURCES_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KDESU_LIB +# define KDESU_EXPORT KDE_EXPORT +#else +# define KDESU_EXPORT KDE_IMPORT +#endif + +// all KStyle libs +#ifdef MAKE_KSTYLE_LIB +# define KSTYLE_EXPORT KDE_EXPORT +#else +# define KSTYLE_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KMDI_LIB +# define KMDI_EXPORT KDE_EXPORT +#else +# define KMDI_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KUTILS_LIB +# define KUTILS_EXPORT KDE_EXPORT +#else +# define KUTILS_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KATEPARTINTERFACES_LIB +# define KATEPARTINTERFACES_EXPORT KDE_EXPORT +#else +# define KATEPARTINTERFACES_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KATEPART_LIB +# define KATEPART_EXPORT KDE_EXPORT +#else +# define KATEPART_EXPORT KDE_IMPORT +#endif + +#ifdef MAKE_KHTML_LIB +# define KHTML_EXPORT KDE_EXPORT +#else +# define KHTML_EXPORT KDE_IMPORT +#endif -- cgit v1.2.1