From bc213eb0e961bcd5863079c56420c778d8107cda Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 23 Mar 2011 18:25:41 +0000 Subject: [PATCH] (trunk libT) If transmission.h is being processed by a C++ compiler, it shouldn't #include stdbool.h --- libtransmission/transmission.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libtransmission/transmission.h b/libtransmission/transmission.h index 93885c095..f6416132a 100644 --- a/libtransmission/transmission.h +++ b/libtransmission/transmission.h @@ -44,12 +44,14 @@ extern "C" { #include /* uintN_t */ #include /* time_t */ -#ifdef HAVE_STDBOOL_H - #include -#elif !defined(__bool_true_false_are_defined) - #define bool uint8_t - #define true 1 - #define false 0 +#if !defined(__cplusplus) + #ifdef HAVE_STDBOOL_H + #include + #elif !defined(__bool_true_false_are_defined) + #define bool uint8_t + #define true 1 + #define false 0 + #endif #endif #ifndef PRId64