[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: good examples of Emacs modules?

From: Eli Zaretskii
Subject: Re: good examples of Emacs modules?
Date: Fri, 01 Apr 2016 17:02:48 +0300

> From: Óscar Fuentes <address@hidden>
> Date: Fri, 01 Apr 2016 15:20:42 +0200
> >> int __declspec(dllexport) plugin_is_GPL_compatible;
> >> 
> >> (Windows)
> >> 
> >> int __attribute__ ((visibility("default"))) plugin_is_GPL_compatible;
> >
> > I don't need any such Windows-specific attributes, so I'm unsure why
> > you think you do.  The test in modules/mod-test compiles and passes
> > the tests just fine without that.
> This is because MinGW defaults to "export everything" (as soon as the
> compiler sees a dllexport, it disables the "export everything" feature),
> same as gcc on GNU/Linux does.

Yes, I know.  But this is not unique to Emacs, so I don't see why we
need to do something that no one else does.

> On Windows this is not a good practice if you have multiple dlls
> (modules) with potentially identical symbols exported.

If this program exists, it will preclude programs using such DLLs from

reply via email to

[Prev in Thread] Current Thread [Next in Thread]