mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-16 04:23:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user