[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Modules _sre.c

Fredrik Lundh fredrik@pythonware.com
Wed, 28 Feb 2001 18:36:09 +0100


tim indirectly wrote:

> *** _sre.c 2001/01/16 07:37:30 2.52
> --- _sre.c 2001/02/28 16:44:18 2.53
> ***************
> *** 2370,2377 ****
>   };
>   
> ! void
> ! #if defined(WIN32)
> ! __declspec(dllexport)
> ! #endif
>   init_sre(void)
>   {
> --- 2370,2374 ----
>   };
>   
> ! DL_EXPORT(void)
>   init_sre(void)
>   {

after this change, the separate makefile I use to build _sre
on Windows no longer works (init_sre isn't exported).

I don't really understand the code in config.h, but I've tried
defining USE_DL_EXPORT (gives linking problems) and
USE_DL_IMPORT (macro redefinition).

any ideas?

Cheers /F