diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-03-02 23:26:41 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-03-02 23:26:41 +0100 |
commit | 028a37edea6362fedfebb023bcc9a0a7a3a63089 (patch) | |
tree | e39985fbfabcdc8a8f1f0b9dee203f65f96b9256 /gmp-h.in | |
parent | ea22de2bff4487824b482cf71bd90e55e202c525 (diff) | |
download | gmp-028a37edea6362fedfebb023bcc9a0a7a3a63089.tar.gz |
More of:
* gmp-h.in (__GMP_DECLSPEC_XX): New define, use it on libgmpxx funs.
Diffstat (limited to 'gmp-h.in')
-rw-r--r-- | gmp-h.in | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -157,19 +157,6 @@ MA 02111-1307, USA. */ #define __GMP_DECLSPEC #endif -#if __GMP_WITHIN_GMPXX -#ifdef DLL_EXPORT -#define __GMP_DECLSPEC_XX __GMP_DECLSPEC_EXPORT -#endif -#else -#if defined (_WIN32) && __GMP_LIBGMP_SHARED -#define __GMP_DECLSPEC_XX __GMP_DECLSPEC_IMPORT -#endif -#endif -#ifndef __GMP_DECLSPEC_XX -#define __GMP_DECLSPEC_XX -#endif - #ifdef _SHORT_LIMB typedef unsigned int mp_limb_t; @@ -271,6 +258,23 @@ typedef __mpf_struct *mpf_ptr; typedef __gmp_const __mpq_struct *mpq_srcptr; typedef __mpq_struct *mpq_ptr; + +/* This is not wanted in mp.h, so put it outside the __GNU_MP__ common + section. */ +#if __GMP_WITHIN_GMPXX +#ifdef DLL_EXPORT +#define __GMP_DECLSPEC_XX __GMP_DECLSPEC_EXPORT +#endif +#else +#if defined (_WIN32) && __GMP_LIBGMP_SHARED +#define __GMP_DECLSPEC_XX __GMP_DECLSPEC_IMPORT +#endif +#endif +#ifndef __GMP_DECLSPEC_XX +#define __GMP_DECLSPEC_XX +#endif + + #if __GMP_HAVE_PROTOTYPES #define __GMP_PROTO(x) x #else |