* Greg Ewing <greg@cosc.canterbury.ac.nz> [2002-07-18 22:03 +1200]: > Someone told me that Pyrex should be generating > __declspec(dllexport) for the module init func. That's wrong. You should be using DL_EXPORT instead, which will do the right thing no matter which platform you're on: on Windows, it will expand to __declspec(dllexport), iff you're compiling an extension module (in contrast to compiling the Python core). I believe that on Unix, it will expand to an empty string :-) You also don't need any #ifdefs for win32 for setting ob_type, just set them _only_ in your init function and leave them as NULL in the declarations. Gerhard -- This sig powered by Python! Außentemperatur in München: 14.3 °C Wind: 1.9 m/s
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4