summaryrefslogtreecommitdiff
path: root/gmp-h.in
diff options
context:
space:
mode:
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