Changeset 14645


Ignore:
Timestamp:
Dec 29, 2015, 7:44:50 PM (6 years ago)
Author:
mikedld
Message:

On second thought, bring back stdbool.h check back

Might be useful for uClibc (which still doesn't provide it) and others.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r14644 r14645  
    454454
    455455set(NEEDED_HEADERS
     456    stdbool.h
    456457    sys/statvfs.h
    457458    xfs/xfs.h
  • trunk/configure.ac

    r14644 r14645  
    107107AC_HEADER_TIME
    108108
    109 AC_CHECK_HEADERS([xlocale.h])
     109AC_CHECK_HEADERS([stdbool.h xlocale.h])
    110110AC_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])
    111111AC_PROG_INSTALL
  • trunk/libtransmission/transmission.h

    r14644 r14645  
    3030#include <time.h> /* time_t */
    3131
    32 #ifndef __cplusplus
    33  #include <stdbool.h>
     32#if !defined (__cplusplus)
     33 #ifdef HAVE_STDBOOL_H
     34  #include <stdbool.h>
     35 #elif !defined (__bool_true_false_are_defined)
     36  #define bool uint8_t
     37  #define true 1
     38  #define false 0
     39 #endif
    3440#endif
    3541
Note: See TracChangeset for help on using the changeset viewer.