gmp-6.2.1 on Tru64 with gcc.

Marc Glisse marc.glisse at inria.fr
Fri Jul 16 10:05:35 UTC 2021


Please check the repository

https://gmplib.org/repo/gmp/rev/37cee5a85875

On Sat, 3 Jul 2021, Jay K wrote:

> On OSF/1/Tru64, inttypes.h lacks uint_least32_t and gcc's stdint.h does have uint_least32_t.
>
> autoconf says uint_least32_t is there because it includes stdint.h, but then:
>
> #if HAVE_INTTYPES_H      /* for uint_least32_t */
> # include <inttypes.h>
> #else                    <== the problem
> # if HAVE_STDINT_H
> #  include <stdint.h>
> # endif
> #endif
>
> leading to:
>
> ../gmp-impl.h:233:1: error: unknown type name 'uint_least32_t'
> In file included from hgcd_appr.c:35:0:
> ../gmp-impl.h:233:1: error: unknown type name 'uint_least32_t'
>
> So please remove the else?
> and then whitespace and comment:
>
> diff -u gmp-impl.h.orig  gmp-impl.h
> --- gmp-impl.h.orig     2021-07-03 18:23:37 -0400
> +++ gmp-impl.h  2021-07-03 18:25:04 -0400
> @@ -152,12 +152,12 @@
> #endif
> #endif
>
> -#if HAVE_INTTYPES_H      /* for uint_least32_t */
> +/* uint_least32_t can be in inttypes.h or stdint.h */
> +#if HAVE_INTTYPES_H
> # include <inttypes.h>
> -#else
> -# if HAVE_STDINT_H
> -#  include <stdint.h>
> -# endif
> +#endif
> +#if HAVE_STDINT_H
> +# include <stdint.h>
> #endif
>
> Thank you,
> - Jay
> _______________________________________________
> gmp-devel mailing list
> gmp-devel at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-devel
>

-- 
Marc Glisse


More information about the gmp-devel mailing list