summaryrefslogtreecommitdiff
path: root/gmp-h.in
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-03-02 23:39:58 +0100
committerKevin Ryde <user42@zip.com.au>2002-03-02 23:39:58 +0100
commit06941d43e4633248d022f6428b4cc6140dc62af8 (patch)
tree4aa9695f67f99cf6b6906c9b4089226407639199 /gmp-h.in
parent2e987385e12cb8cbc59ffc19f6b82d6b7213e56a (diff)
downloadgmp-06941d43e4633248d022f6428b4cc6140dc62af8.tar.gz
* gmp-h.in, mp-h.in (__GMP_DECLSPEC, __GMP_DECLSPEC_XX): Test
__WIN32__ for Borland C, reported by "delta trinity".
Diffstat (limited to 'gmp-h.in')
-rw-r--r--gmp-h.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/gmp-h.in b/gmp-h.in
index 663295e86..bf9a27dcd 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -149,7 +149,9 @@ MA 02111-1307, USA. */
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
#endif
#else
-#if defined (_WIN32) && __GMP_LIBGMP_SHARED
+#if (defined (_WIN32) /* Microsoft C */ \
+ || defined (__WIN32__) /* Borland C */ \
+ && __GMP_LIBGMP_SHARED
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
#endif
#endif
@@ -266,7 +268,9 @@ typedef __mpq_struct *mpq_ptr;
#define __GMP_DECLSPEC_XX __GMP_DECLSPEC_EXPORT
#endif
#else
-#if defined (_WIN32) && __GMP_LIBGMP_SHARED
+#if (defined (_WIN32) /* Microsoft C */ \
+ || defined (__WIN32__) /* Borland C */ \
+ && __GMP_LIBGMP_SHARED
#define __GMP_DECLSPEC_XX __GMP_DECLSPEC_IMPORT
#endif
#endif