komacro_export.h
1/***************************************************************************
2 * This file is part of the KDE project
3 * copyright (C) 2006 by Sebastian Sauer (mail@dipe.org)
4 * copyright (C) 2006 by Tobi Krebs (tobi.krebs@gmail.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
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 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#ifndef KOMACRO_EXPORT_H_
21#define KOMACRO_EXPORT_H_
22
23#ifdef __cplusplus
24# include <tdeversion.h> /* this will also include <tdelibs_export.h>, if available */
25#endif
26
27/* TDE_EXPORT will be defined multiple times without this on tdelibs 3.3 (tested on 3.3.1) */
28#include <tdemacros.h>
29
30/* workaround for KDElibs < 3.2 on !win32 */
31#ifndef TDE_EXPORT
32# define TDE_EXPORT
33#endif
34
35#ifndef KOMACRO_EXPORT
36# define KOMACRO_EXPORT TDE_EXPORT
37#endif
38
39#endif