[Pyrex] Re: conditional compiling

Mike Rovner mike at nospam.com
Wed Oct 15 01:38:54 CEST 2003


Bryan Weingarten wrote:
> is it possible to have conditional defines?  something like this?
...
> i'm wrapping a cross-platfrom library, and unfortunately it has
> function that only exists in the windows build.

create dummy implementation like

#ifndef _WIN32
    ...
#endif

to make linker happy
and raise an exception on not Win32 on attempt to call it

HTH,
Mike







More information about the Pyrex mailing list