diff Include/allobjects.h @ 2436:fa98dda07877 legacy-trunk

make the type a parameter of the DL_IMPORT macro, for Borland C
author Guido van Rossum <guido@python.org>
date Mon, 27 Feb 1995 10:17:52 +0000
parents 582b00fbab16
children af3aab6b07c4
line wrap: on
line diff
--- a/Include/allobjects.h	Mon Feb 27 10:15:36 1995 +0000
+++ b/Include/allobjects.h	Mon Feb 27 10:17:52 1995 +0000
@@ -35,12 +35,16 @@
  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