mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk libT) If transmission.h is being processed by a C++ compiler, it shouldn't #include stdbool.h
This commit is contained in:
parent
eaee57d503
commit
bc213eb0e9
1 changed files with 8 additions and 6 deletions
|
@ -44,12 +44,14 @@ extern "C" {
|
|||
#include <inttypes.h> /* uintN_t */
|
||||
#include <time.h> /* time_t */
|
||||
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
#if !defined(__cplusplus)
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
#include <stdbool.h>
|
||||
#elif !defined(__bool_true_false_are_defined)
|
||||
#elif !defined(__bool_true_false_are_defined)
|
||||
#define bool uint8_t
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef PRId64
|
||||
|
|
Loading…
Reference in a new issue