Enhance FOO_EXPORT macro
Allen Winter
winter at kde.org
Sun May 6 16:02:32 BST 2007
On Sunday 06 May 2007 10:43:01 am you wrote:
> Allen Winter schrieb:
> > On Friday 04 May 2007 8:19:22 am David Faure wrote:
> >> On Friday 04 May 2007, Christian Ehrlicher wrote:
> >>> It should be changed after alpha1 is ready, then also the export macro creator (afair someone wrote a small script for this) should be updated.
> >> Yes, I wrote kdesdk/scripts/kde_generate_export_header for this.
> >>
> > I fixed kde_generate_export_header accordingly.
> >
> thx, what about the KDE_EXPORT macro? Any objections to define
> KDE_IMPORT to KDE_EXPORT on non win32?
> This would simplify the export macro a little bit
>
You mean like this?
#ifndef SOLID_EXPORT
# if defined _WIN32 || defined _WIN64
# if defined(MAKE_SOLID_LIB)
/* We are building this library */
# define SOLID_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define SOLID_EXPORT KDE_IMPORT
# endif
# else /* UNIX */
# define SOLID_EXPORT KDE_EXPORT
# define KDE_IMPORT KDE_EXPORT
# endif
#endif
More information about the kde-core-devel
mailing list