[w3m-dev 02921] use inttypes.h instead of stdint.h

* configure: check inttypes.h instead of stdint.h
* config.h.dist: s/STDINT_H/INTTYPES_H/
* mktable.c: use inttypes.h instead of stdint.h
From: Fumitoshi UKAI  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2002-01-29 03:23:43 +00:00
parent 796913920d
commit 3db3a9da5f
4 changed files with 32 additions and 16 deletions

15
configure vendored
View File

@@ -1,5 +1,5 @@
#!/bin/sh
# $Id: configure,v 1.55 2002/01/21 15:56:13 ukai Exp $
# $Id: configure,v 1.56 2002/01/29 03:23:44 ukai Exp $
# Configuration.
#
@@ -1717,20 +1717,21 @@ else
def_have_sys_select_h='#undef HAVE_SYS_SELECT_H'
fi
####### check for stdint.h
####### check for inttypes
cat > _zmachdep.c <<EOF
#include <stdint.h>
#include <inttypes.h>
main()
{
uintptr_t p;
;
}
EOF
if $cc $cflags -c _zmachdep.c > /dev/null 2>&1
then
echo "You have stdint.h."
def_have_stdint_h='#define HAVE_STDINT_H'
echo "You have inttypes.h."
def_have_inttypes_h='#define HAVE_INTTYPES_H'
else
def_have_stdint_h='#undef HAVE_STDINT_H'
def_have_inttypes_h='#undef HAVE_INTTYPES_H'
fi
####### setpgrp(pid, pgrp) or setpgrp() ?
@@ -2134,7 +2135,7 @@ $def_longjmp
$def_jmpbuf
$def_have_float_h
$def_have_sys_select_h
$def_have_stdint_h
$def_have_inttypes_h
$def_sighandler
$def_sig_arg