include stdint.h on Solaris/SunOS
This makes sure that (u)intmax_t are available, as they are not defined in the same place as INTMAX_MAX
This commit is contained in:
parent
429801c600
commit
4fb53e3f8e
5
gmp-h.in
5
gmp-h.in
@ -28,6 +28,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
#include <stdarg.h> /* on Sun Studio */
|
||||
#endif
|
||||
|
||||
#if defined(sun) || defined(__sun)
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
|
||||
#include <cstddef> /* for size_t */
|
||||
@ -1240,6 +1244,7 @@ __GMP_DECLSPEC mpz_srcptr mpz_roinit_n (mpz_ptr, mp_srcptr, mp_size_t);
|
||||
/****** Integer (i.e. Z) routines for intmaax_t/uintmax_t types ******/
|
||||
|
||||
/* if stdint.h is available -- n.b: we do NOT include stdint.h ourselves */
|
||||
/* -- however, we do include it on SunOS/Solaris, for (u)intmax_t */
|
||||
#if defined(INTMAX_MAX)
|
||||
|
||||
#define __GMP_BITS_PER_UINTMAX (8*sizeof(uintmax_t))
|
||||
|
Loading…
Reference in New Issue
Block a user