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 <inttypes.h> /* uintN_t */
|
||||||
#include <time.h> /* time_t */
|
#include <time.h> /* time_t */
|
||||||
|
|
||||||
#ifdef HAVE_STDBOOL_H
|
#if !defined(__cplusplus)
|
||||||
#include <stdbool.h>
|
#ifdef HAVE_STDBOOL_H
|
||||||
#elif !defined(__bool_true_false_are_defined)
|
#include <stdbool.h>
|
||||||
#define bool uint8_t
|
#elif !defined(__bool_true_false_are_defined)
|
||||||
#define true 1
|
#define bool uint8_t
|
||||||
#define false 0
|
#define true 1
|
||||||
|
#define false 0
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PRId64
|
#ifndef PRId64
|
||||||
|
|
Loading…
Reference in a new issue