[Python-Dev] Is __declspec(dllexport) really needed on Windows?

Tim Peters tim.one@comcast.net
Thu, 18 Jul 2002 23:54:16 -0400


[Mark Hammond]
> FWIW, www.python.org/sf/566100 deprecates DL_IMPORT/DL_EXPORT as it is
> broken!  Once this patch is checked in, the new blessed way to
> declare your function will be:
>
> PyMODINIT_FUNC init_module(void)
> {
> ...
> }
>
> This macro will do the right thing in all situations and for all
> platforms.
> It even provides the 'extern "C"' if your extension is in a C++ module.
>
> The-patch-even-updates-the-doc ly,

This patch is a Good Thing, and I demand that everyone show you more
appreciation for it.

for-my-next-act-i'll-command-the-tide-to-retreat-ly y'rs  - tim