Switch types to C99 standard using stdint.h
Add stdint.h header check to ./configure Add -std=c99 to CFLAGS.
This commit is contained in:
parent
d32d57f237
commit
ab3664b056
15 changed files with 140 additions and 128 deletions
|
|
@ -13,7 +13,7 @@ AC_PATH_PROG(PKG_CONFIG, pkg-config)
|
|||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([stdlib.h])
|
||||
AC_CHECK_HEADERS([stdlib.h stdint.h])
|
||||
|
||||
|
||||
# libusb
|
||||
|
|
@ -40,10 +40,11 @@ AC_MSG_RESULT($enable_debug)
|
|||
|
||||
if test "x$enable_debug" = "xyes"
|
||||
then
|
||||
CFLAGS="$CFLAGS -g -Wall -DDEBUG"
|
||||
CFLAGS="$CFLAGS -g -Wall -DDEBUG -pedantic"
|
||||
fi
|
||||
AC_SUBST([DEBUG_CFLAGS])
|
||||
|
||||
CFLAGS="$CFLAGS -std=c99"
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue