1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +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 <time.h> /* time_t */
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#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 <stdbool.h>
#elif !defined(__bool_true_false_are_defined)
#define bool uint8_t
#define true 1
#define false 0
#endif
#endif
#ifndef PRId64