From d42a2dc225c49ec7f4d797f0ba6fa8c3879f93d3 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Wed, 3 Jun 2009 20:21:45 -0500 Subject: [PATCH] make yap2swi compile without GMP (obs from Tony Wilson). --- library/yap2swi/yap2swi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/yap2swi/yap2swi.c b/library/yap2swi/yap2swi.c index 3cb92a0d0..025a1a522 100644 --- a/library/yap2swi/yap2swi.c +++ b/library/yap2swi/yap2swi.c @@ -2198,6 +2198,7 @@ PL_eval_expression_to_int_64_ex(term_t t, int64_t *val) if (IsIntegerTerm(res)) { *val = IntegerOfTerm(res); return TRUE; +#if SIZEOF_LONG_INT==4 && USE_GMP } else if (YAP_IsBigNumTerm(res)) { MP_INT g; char s[64]; @@ -2210,6 +2211,7 @@ PL_eval_expression_to_int_64_ex(term_t t, int64_t *val) sscanf(s, "%lld", (long long int *)val); return 1; } +#endif PL_error(NULL,0,NULL, ERR_TYPE, AtomToSWIAtom(Yap_LookupAtom("integer_expression"))); return FALSE; }