[PD-dev] cross-platform support for externals ("extern" not enough?) (Was: Re: Problem building pdlua on MinGW (solved for now))
Claude Heiland-Allen
claudiusmaximus at goto10.org
Wed Sep 3 22:11:13 CEST 2008
Claude Heiland-Allen wrote:
>> After:
>> EXTERN void lua_setup(void) {
>
> Applied this change.
Actually, I had to define a new macro depending on MSW, because
otherwise the EXTERN stuff operates in the wrong direction (oops).
Should work now, thanks to IOhannes for pointing out the issue (albeit
obliquely).
So the question is, does every external have to jump through this kind
of hoop if it wants to compile on Windows?
/* support windows */
#ifdef MSW
#define EXPORT __declspec(dllexport) extern
#else
#define EXPORT extern
#endif
Claude
--
http://claudiusmaximus.goto10.org
More information about the Pd-dev
mailing list