On second thought, bring back stdbool.h check back
Might be useful for uClibc (which still doesn't provide it) and others.
This commit is contained in:
parent
eb8fc35ac6
commit
d4213f09d5
|
@ -453,6 +453,7 @@ endif()
|
|||
include(LargeFileSupport)
|
||||
|
||||
set(NEEDED_HEADERS
|
||||
stdbool.h
|
||||
sys/statvfs.h
|
||||
xfs/xfs.h
|
||||
xlocale.h)
|
||||
|
|
|
@ -106,7 +106,7 @@ fi
|
|||
AC_HEADER_STDC
|
||||
AC_HEADER_TIME
|
||||
|
||||
AC_CHECK_HEADERS([xlocale.h])
|
||||
AC_CHECK_HEADERS([stdbool.h xlocale.h])
|
||||
AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename canonicalize_file_name strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll mkdtemp uselocale _configthreadlocale])
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_MAKE_SET
|
||||
|
|
|
@ -29,8 +29,14 @@ extern "C" {
|
|||
#include <inttypes.h> /* uintN_t */
|
||||
#include <time.h> /* time_t */
|
||||
|
||||
#ifndef __cplusplus
|
||||
#include <stdbool.h>
|
||||
#if !defined (__cplusplus)
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
#include <stdbool.h>
|
||||
#elif !defined (__bool_true_false_are_defined)
|
||||
#define bool uint8_t
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define SHA_DIGEST_LENGTH 20
|
||||
|
|
Loading…
Reference in New Issue