From cf95dbba130da39683f91d50cc9c0cb87006fc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Tue, 5 Sep 2000 15:01:01 +0200 Subject: [PATCH] Bugfix. Rev: src/modules/Gmp/configure.in:1.18 Rev: src/modules/Gmp/my_gmp.h:1.9 --- src/modules/Gmp/configure.in | 10 ++++++---- src/modules/Gmp/my_gmp.h | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/modules/Gmp/configure.in b/src/modules/Gmp/configure.in index f417d070b3..61b9990236 100644 --- a/src/modules/Gmp/configure.in +++ b/src/modules/Gmp/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.17 2000/09/04 16:04:33 grubba Exp $ +# $Id: configure.in,v 1.18 2000/09/05 13:01:01 grubba Exp $ AC_INIT(mpz_glue.c) AC_CONFIG_HEADER(gmp_machine.h) AC_ARG_WITH(gmp, [ --with(out)-gmp Support bignums],[],[with_gmp=yes]) @@ -91,7 +91,8 @@ __MPN(PiKe) /* Kludge for some compilers only defining __STDC__ in strict mode. */ #if !defined(__STDC__) && defined(HAVE_ANSI_CONCAT) && defined(PIKE_MPN_PREFIX) -#define PIKE_MPN_CONCAT(x,y) x##y +#define PIKE_LOW_MPN_CONCAT(x,y) x##y +#define PIKE_MPN_CONCAT(x,y) PIKE_LOW_MPN_CONCAT(x,y) #define __MPN(x) PIKE_MPN_CONCAT(PIKE_MPN_PREFIX,x) #endif /* !__STDC__ && HAVE_ANSI_CONCAT && PIKE_MPN_PREFIX */ @@ -117,7 +118,8 @@ int main(int argc, char **argv) /* Kludge for some compilers only defining __STDC__ in strict mode. */ #if !defined(__STDC__) && defined(HAVE_ANSI_CONCAT) && defined(PIKE_MPN_PREFIX) -#define PIKE_MPN_CONCAT(x,y) x##y +#define PIKE_LOW_MPN_CONCAT(x,y) x##y +#define PIKE_MPN_CONCAT(x,y) PIKE_LOW_MPN_CONCAT(x,y) #define __MPN(x) PIKE_MPN_CONCAT(PIKE_MPN_PREFIX,x) #endif /* !__STDC__ && HAVE_ANSI_CONCAT && PIKE_MPN_PREFIX */ @@ -149,7 +151,7 @@ int main(int argc, char **argv) fi ]) - if test $done = no; then + if test "x$done" = "xno"; then $3 : fi diff --git a/src/modules/Gmp/my_gmp.h b/src/modules/Gmp/my_gmp.h index f158154d06..f84c27f800 100644 --- a/src/modules/Gmp/my_gmp.h +++ b/src/modules/Gmp/my_gmp.h @@ -1,4 +1,4 @@ -/* $Id: my_gmp.h,v 1.8 2000/09/04 16:04:34 grubba Exp $ +/* $Id: my_gmp.h,v 1.9 2000/09/05 13:01:01 grubba Exp $ * * These functions or something similar will hopefully be included * with Gmp-2.1 . @@ -11,7 +11,8 @@ * which leads to <gmp.h> using the wrong token concat method. */ #if !defined(__STDC__) && defined(HAVE_ANSI_CONCAT) && defined(PIKE_MPN_PREFIX) -#define PIKE_MPN_CONCAT(x,y) x##y +#define PIKE_LOW_MPN_CONCAT(x,y) x##y +#define PIKE_MPN_CONCAT(x,y) PIKE_LOW_MPN_CONCAT(x,y) #define __MPN(x) PIKE_MPN_CONCAT(PIKE_MPN_PREFIX,x) #endif /* !__STDC__ && HAVE_ANSI_CONCAT && PIKE_MPN_PREFIX */ -- GitLab