1
0
Fork 0
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:
Jordan Lee 2011-03-23 18:25:41 +00:00
parent eaee57d503
commit bc213eb0e9

View file

@ -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