summaryrefslogtreecommitdiff
path: root/src/nrandom.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2014-01-16 22:03:01 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2014-01-16 22:03:01 +0000
commitb8ef4f9b79a2a989a601bf0fad918541aaada8cd (patch)
tree1c85f14570a6c8de41a2b15e4c17f716c8a89b5a /src/nrandom.c
parentf56d3181a510273c1dadce640072ebdaff3a8e94 (diff)
downloadmpfr-b8ef4f9b79a2a989a601bf0fad918541aaada8cd.tar.gz
first step towards making MPFR compile with --enable-mini-gmp, so far make
succeeds and all tests compile, but many tests fail, will investigate later git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8753 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/nrandom.c')
-rw-r--r--src/nrandom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nrandom.c b/src/nrandom.c
index 7d013093f..20d66599c 100644
--- a/src/nrandom.c
+++ b/src/nrandom.c
@@ -51,6 +51,9 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
* asserts would be that the hardware generator was broken.)
*/
+/* this file cannot be compiled with mini-gmp since it relies on
+ mpfr_random_deviate_value which needs mpq_t */
+#ifndef WANT_MINI_GMP
#include "random_deviate.h"
/* Algorithm H: true with probability exp(-1/2). */
@@ -177,3 +180,4 @@ mpfr_nrandom (mpfr_t z, gmp_randstate_t r, mpfr_rnd_t rnd)
mpfr_random_deviate_clear (x);
return inex;
}
+#endif