Browse Source

vlc_plugin: do not export symbols with a modifier when using libtool on OS/2

On OS/2, symbols are exported by .def when using libtool. So exporting
them with a modifier such as __declspec(dllexport) causes a linker to
complain about it.
work/unnecessary-disc-string
KO Myung-Hun 3 months ago
committed by Felix Paul Kühne
parent
commit
5e3eaa97a4
  1. 6
      include/vlc_plugin.h

6
include/vlc_plugin.h

@ -272,7 +272,11 @@ enum vlc_config_subcat
#define CDECL_SYMBOL
#if defined (VLC_DYNAMIC_PLUGIN)
# if defined (_WIN32) || defined (__OS2__)
/* Libtool exports symbols with .def file. If exporting those symbols with
* __declspec(dllexport), a linker complains about it. So do not export
* symbols with the modifier when using libtool on OS/2.
* DLL_EXPORT is defined by libtool. */
# if defined (_WIN32) || (defined (__OS2__) && !defined (DLL_EXPORT))
# define DLL_SYMBOL __declspec(dllexport)
# undef CDECL_SYMBOL
# define CDECL_SYMBOL __cdecl

Loading…
Cancel
Save