summaryrefslogtreecommitdiff
path: root/mpfr-gmp.h
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-02-08 13:54:10 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-02-08 13:54:10 +0000
commitedf538540f58bfbb42de8aa9d845dabba97748ba (patch)
tree7be910cfd80111e4d1cd57527eb16a0947b4f352 /mpfr-gmp.h
parente35d890c9c75b1b9bed6c3471dbc178ea384189a (diff)
downloadmpfr-edf538540f58bfbb42de8aa9d845dabba97748ba.tar.gz
Add support for Shared Library in MPFR (both Unix and Windows) by using libtool.
Improve configure (remove unused macros, make dist produce .zip and .bz2) Update update-version to modify configure.in too. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3281 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr-gmp.h')
-rw-r--r--mpfr-gmp.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/mpfr-gmp.h b/mpfr-gmp.h
index f3177e99b..6ded1fb85 100644
--- a/mpfr-gmp.h
+++ b/mpfr-gmp.h
@@ -133,7 +133,8 @@ extern "C" {
#endif
/* ASSERT */
-void mpfr_assert_fail _MPFR_PROTO((const char *filename, int linenum, const char *expr));
+__MPFR_DECLSPEC void mpfr_assert_fail _MPFR_PROTO((const char *, int,
+ const char *));
#define ASSERT_FAIL(expr) mpfr_assert_fail (__FILE__, __LINE__, #expr)
#define ASSERT(expr) MPFR_ASSERTD(expr)
@@ -199,7 +200,7 @@ struct bases
};
#undef __mp_bases
#define __mp_bases mpfr_bases
-extern const struct bases __mp_bases[257];
+__MPFR_DECLSPEC extern const struct bases mpfr_bases[257];
/* Standard macros */
#undef ABS
@@ -217,8 +218,8 @@ extern const struct bases __mp_bases[257];
#define __gmp_rands_initialized mpfr_rands_initialized
#define __gmp_rands mpfr_rands
-extern char __gmp_rands_initialized;
-extern gmp_randstate_t __gmp_rands;
+__MPFR_DECLSPEC extern char mpfr_rands_initialized;
+__MPFR_DECLSPEC extern gmp_randstate_t mpfr_rands;
#undef RANDS
#define RANDS \
@@ -241,11 +242,12 @@ typedef __gmp_randstate_struct *gmp_randstate_ptr;
#undef _gmp_rand
#define _gmp_rand mpfr_rand_raw
-void mpfr_rand_raw _MPFR_PROTO((mp_ptr, gmp_randstate_t, unsigned long int));
+__MPFR_DECLSPEC void mpfr_rand_raw _MPFR_PROTO((mp_ptr, gmp_randstate_t,
+ unsigned long));
/* To be called BEFORE tests_start_mpfr () if the tests used
mpfr_random, mpfr_random2 or any functions which uses the macro RANDS */
-void mpfr_init_gmp_rand _MPFR_PROTO((void));
+__MPFR_DECLSPEC void mpfr_init_gmp_rand _MPFR_PROTO((void));
#define MPFR_TEST_USE_RANDS() mpfr_init_gmp_rand ();
@@ -263,9 +265,11 @@ void mpfr_init_gmp_rand _MPFR_PROTO((void));
#define __gmp_allocate_func (MPFR_GET_MEMFUNC, mpfr_allocate_func)
#define __gmp_reallocate_func (MPFR_GET_MEMFUNC, mpfr_reallocate_func)
#define __gmp_free_func (MPFR_GET_MEMFUNC, mpfr_free_func)
-extern void * (*mpfr_allocate_func) _MPFR_PROTO ((size_t));
-extern void * (*mpfr_reallocate_func) _MPFR_PROTO ((void *, size_t, size_t));
-extern void (*mpfr_free_func) _MPFR_PROTO ((void *, size_t));
+__MPFR_DECLSPEC extern void * (*mpfr_allocate_func) _MPFR_PROTO ((size_t));
+__MPFR_DECLSPEC extern void * (*mpfr_reallocate_func) _MPFR_PROTO ((void *,
+ size_t, size_t));
+__MPFR_DECLSPEC extern void (*mpfr_free_func) _MPFR_PROTO ((void *,
+ size_t));
#endif
@@ -275,9 +279,10 @@ extern void (*mpfr_free_func) _MPFR_PROTO ((void *, size_t));
#define __gmp_default_allocate mpfr_default_allocate
#define __gmp_default_reallocate mpfr_default_reallocate
#define __gmp_default_free mpfr_default_free
-void *__gmp_default_allocate _MPFR_PROTO ((size_t));
-void *__gmp_default_reallocate _MPFR_PROTO ((void *, size_t, size_t));
-void __gmp_default_free _MPFR_PROTO ((void *, size_t));
+__MPFR_DECLSPEC void *__gmp_default_allocate _MPFR_PROTO ((size_t));
+__MPFR_DECLSPEC void *__gmp_default_reallocate _MPFR_PROTO ((void *, size_t,
+ size_t));
+__MPFR_DECLSPEC void __gmp_default_free _MPFR_PROTO ((void *, size_t));
#if defined (__cplusplus)
}