diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-03-20 22:33:03 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-03-20 22:33:03 +0100 |
commit | 67ac222f1b895f0c92905f4c37305077b8515e1a (patch) | |
tree | 4240961c1e1281cdc5b58587dfd352b8fa46e265 /mp-h.in | |
parent | 40fed36d9eb91bdf5305ebd82c3764eec6636c2b (diff) | |
download | gmp-67ac222f1b895f0c92905f4c37305077b8515e1a.tar.gz |
* configure.in, gmp-h.in, mp-h.in, macos/configure: Use
__GMP_LIBGMP_DLL to enable windows declspec, don't require _WIN32
(etc), remove __GMP_LIBGMP_SHARED and __GMP_LIBGMP_STATIC.
Diffstat (limited to 'mp-h.in')
-rw-r--r-- | mp-h.in | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -41,8 +41,7 @@ MA 02111-1307, USA. */ /* The following instantiated by configure, for internal use only */ #if ! __GMP_WITHIN_CONFIGURE @DEFN_LONG_LONG_LIMB@ -#define __GMP_LIBGMP_STATIC @__GMP_LIBGMP_STATIC@ -#define __GMP_LIBGMP_SHARED @__GMP_LIBGMP_SHARED@ +#define __GMP_LIBGMP_DLL @__GMP_LIBGMP_DLL@ #endif #if defined (__STDC__) \ @@ -83,19 +82,13 @@ MA 02111-1307, USA. */ #define __GMP_DECLSPEC_IMPORT _Import #endif +#if __GMP_LIBGMP_DLL #if __GMP_WITHIN_GMP -#ifdef DLL_EXPORT #define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT -#endif #else -#if (defined (_WIN32) /* Microsoft C */ \ - || defined (__WIN32__)) /* Borland C */ \ - && __GMP_LIBGMP_SHARED #define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT #endif -#endif - -#ifndef __GMP_DECLSPEC +#else #define __GMP_DECLSPEC #endif |