Changeset 12213


Ignore:
Timestamp:
Mar 23, 2011, 6:25:41 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) If transmission.h is being processed by a C++ compiler, it shouldn't #include stdbool.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r12204 r12213  
    4545#include <time.h> /* time_t */
    4646
    47 #ifdef HAVE_STDBOOL_H
    48  #include <stdbool.h>
    49 #elif !defined(__bool_true_false_are_defined)
    50  #define bool uint8_t
    51  #define true 1
    52  #define false 0
     47#if !defined(__cplusplus)
     48 #ifdef HAVE_STDBOOL_H
     49  #include <stdbool.h>
     50 #elif !defined(__bool_true_false_are_defined)
     51  #define bool uint8_t
     52  #define true 1
     53  #define false 0
     54 #endif
    5355#endif
    5456
Note: See TracChangeset for help on using the changeset viewer.