playground/libs/popupdropper/popupdropper
Pau Garcia i Quiles
pgquiles at elpauer.org
Thu Jul 24 03:05:58 CEST 2008
Quoting Jeff Mitchell <kde-dev at emailgoeshere.com>:
a) Your exports are broken and don't work on Windows with Visual C++
b) They may come straight from kdemacros but they don't work,
something's missing. Please note in gcc visibility = default means
"make everything public", I guess that's why it worked fine with gcc.
c) It built fine on Windows with Visual C++ and MinGW (gcc 3.4.5).
Could you please tell me what broke and on what platform?
d) I didn't know the library was non-KDE. Given that it is developed
in KDE's subversion repository and there is no indication anywhere in
the sources, I'd say my assumption was quite correct.
And let me add:
e) Please be polite and respect others's work. That "crap" (as you
call it) made Amarok work on Windows and generated a lot of interest:
http://amarok.kde.org/blog/archives/745-Amarok-2-on-Windows-Reloaded.html
Thank you.
> SVN commit 837166 by mitchell:
>
> a) Why did you change this -- you gave no email to the maintainer
> (me) before touching things
> b) Those lines that were in there already came straight from kdemacros
> c) You broke build
> d) You introduced KDE deps into a non-KDE library
>
> Reverting this crap.
>
> CCMAIL: pgquiles at elpauer.org
>
>
> M +4 -9 PopupDropper_Export.h
>
>
> ---
> trunk/playground/libs/popupdropper/popupdropper/PopupDropper_Export.h
> #837165:837166
> @@ -20,15 +20,10 @@
> #ifndef POPUPDROPPER_EXPORT_H
> #define POPUPDROPPER_EXPORT_H
>
> -/* needed for KDE_EXPORT and KDE_IMPORT macros */
> -#include <kdemacros.h>
> -
> -#ifndef POPUPDROPPER_EXPORT
> -# if defined(MAKE_AMAROKPUD_LIB)
> -# define POPUPDROPPER_EXPORT KDE_EXPORT
> -# else
> -# define POPUPDROPPER_EXPORT KDE_IMPORT
> -# endif
> +#if defined(_WIN32) || defined(_WIN64)
> + #define POPUPDROPPER_EXPORT __declspec(dllexport)
> +#else
> + #define POPUPDROPPER_EXPORT __attribute__ ((visibility("default")))
> #endif
>
> #endif
>
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the Kde-windows
mailing list