summaryrefslogtreecommitdiffstats
path: root/win/tdelibs_export_win.h
blob: 830eb10d9246f6d1c82eedabb7ada41330f7a770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*
   This file is part of the KDE libraries
   Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>

   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 <io.h> /* to avoid #includes */

#define KPATH_SEPARATOR ';'
#define popen _popen
#define pclose _pclose

#define KDE_IMPORT __declspec(dllimport)

#ifdef MAKE_TDECORE_LIB
# define TDECORE_EXPORT KDE_EXPORT
#else
# ifndef TDECORE_EXPORT
#  define TDECORE_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_TDEUI_LIB
# define TDEUI_EXPORT KDE_EXPORT
# define EXPORT_DOCKCLASS KDE_EXPORT
#elif KDE_MAKE_LIB
# define TDEUI_EXPORT KDE_IMPORT
# define EXPORT_DOCKCLASS KDE_IMPORT /* for library build export docklass by default */
#else
# define TDEUI_EXPORT
# define EXPORT_DOCKCLASS
#endif

#ifdef MAKE_TDEFX_LIB
# define TDEFX_EXPORT  KDE_EXPORT
#else
# define TDEFX_EXPORT KDE_IMPORT
#endif

#ifdef MAKE_TDEPRINT_LIB
# define TDEPRINT_EXPORT  KDE_EXPORT
#else
# define TDEPRINT_EXPORT KDE_IMPORT
#endif

#ifndef TDEIO_EXPORT
# ifdef MAKE_TDEIO_LIB
#  define TDEIO_EXPORT KDE_EXPORT
# else
#  define TDEIO_EXPORT KDE_IMPORT
# endif
#endif

#ifdef MAKE_DCOP_LIB
# define DCOP_EXPORT KDE_EXPORT
#else
# define DCOP_EXPORT KDE_IMPORT
#endif

#ifdef MAKE_TDEPARTS_LIB
# define TDEPARTS_EXPORT KDE_EXPORT
#else
# define TDEPARTS_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_TDERESOURCES_LIB
# define TDERESOURCES_EXPORT KDE_EXPORT
#else
# define TDERESOURCES_EXPORT KDE_IMPORT
#endif

#ifdef MAKE_TDESU_LIB
# define TDESU_EXPORT KDE_EXPORT
#else
# define TDESU_EXPORT KDE_IMPORT
#endif

// all TDEStyle libs
#ifdef MAKE_TDESTYLE_LIB
# define TDESTYLE_EXPORT KDE_EXPORT
#else
# define TDESTYLE_EXPORT KDE_IMPORT
#endif

#ifdef MAKE_KMDI_LIB
# define KMDI_EXPORT  KDE_EXPORT
#else
# define KMDI_EXPORT KDE_IMPORT
#endif

#ifdef MAKE_TDEUTILS_LIB
# define TDEUTILS_EXPORT  KDE_EXPORT
#else
# define TDEUTILS_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_TDEHTML_LIB
# define TDEHTML_EXPORT KDE_EXPORT
#else
# define TDEHTML_EXPORT KDE_IMPORT
#endif