diff options
author | Guido van Rossum <guido@python.org> | 1995-02-27 10:17:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-27 10:17:52 (GMT) |
commit | 051ab123b465685e714668099c0a6dd86de5673b (patch) | |
tree | 16ee109ab64b01f19e289a3c284c7ce9b70618fa /Include/allobjects.h | |
parent | 0fbec64c56e5f2644b4e23a458a42ca273fd4888 (diff) | |
download | cpython-051ab123b465685e714668099c0a6dd86de5673b.zip cpython-051ab123b465685e714668099c0a6dd86de5673b.tar.gz cpython-051ab123b465685e714668099c0a6dd86de5673b.tar.bz2 |
make the type a parameter of the DL_IMPORT macro, for Borland C
Diffstat (limited to 'Include/allobjects.h')
-rw-r--r-- | Include/allobjects.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Include/allobjects.h b/Include/allobjects.h index 6dbdb1e..b156e2e 100644 --- a/Include/allobjects.h +++ b/Include/allobjects.h @@ -35,12 +35,16 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. only turned on for the modules built as DL modules, not for python itself. */ -#define DL_IMPORT /* Save lots of #else/#if's */ +#define DL_IMPORT( RTYPE ) RTYPE /* Save lots of #else/#if's */ #ifdef USE_DL_IMPORT #ifdef NT #undef DL_IMPORT -#define DL_IMPORT __declspec(dllimport) +#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE #endif /* NT */ +#ifdef __BORLANDC__ +#undef DL_IMPORT +#define DL_IMPORT(RTYPE) RTYPE __import +#endif /* BORLANDC */ #endif /* USE_DL_IMPORT */ #ifdef HAVE_CONFIG_H |