[SDL] A bit offtopic : SO & DLL export macro
Nicolai Haehnle
prefect_ at gmx.net
Wed Apr 2 07:47:01 PST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 02 April 2003 17:37, Dinand Vanvelzen wrote:
> I have this macro for DLL exports :
>
> #ifdef BUILD_DLL
> #define EXPORT __declspec( dllexport )
> #else
> #ifdef USE_DLL
> #define EXPORT __declspec( dllimport )
> #else
> #define EXPORT
> #endif /* USE_DLL */
> #endif /* BUILD_DLL */
>
> I figured someone on this list is bound to know the answer to this
> one.... What i want is this modified so it also works for .SO ( Linux
> Dynamicly Linked ) files ( assuming i can't just use it like this ).
> Who know's the answer ? Tnx. in advance.
AFAIK, all non-static symbols are exported from .sos by default, so you can
just define EXPORT to be empty for Linux.
cu,
Nicolai
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+iwW7sxPozBga0lwRAi7KAKCacETMbIImINiVejFUpxJugO+LaACfQRYb
SJa0UgU8HfYkQTpD592f/Vk=
=tOF1
-----END PGP SIGNATURE-----
More information about the SDL
mailing list