commit: r444 - trunk/daemon
[email protected] Fri, 06 Jan 2012 20:23:39 -0500
| Newsgroups | gmane.network.spread.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: jonathan Date: 2012-01-06 20:23:38 -0500 (Fri, 06 Jan 2012) New Revision: 444 Modified: trunk/daemon/Changelog trunk/daemon/arch.h Log: Fix bool declaration so it is not used with C++ compilers Modified: trunk/daemon/Changelog =================================================================== --- trunk/daemon/Changelog 2012-01-07 01:13:14 UTC (rev 443) +++ trunk/daemon/Changelog 2012-01-07 01:23:38 UTC (rev 444) @@ -1,3 +1,8 @@ +Fri Jan 6 20:22:10 2012 John Schultz <[email protected]> + + * arch.h: Protect bool definition so it is not included when a + C++ compiler is used. Fix issue reported on spread-users list. + Fri Jan 6 20:12:34 2012 Jonathan Stanton <[email protected]> * message.c (Message_Buffer_to_Message_Fragments): Add sanity check Modified: trunk/daemon/arch.h =================================================================== --- trunk/daemon/arch.h 2012-01-07 01:13:14 UTC (rev 443) +++ trunk/daemon/arch.h 2012-01-07 01:23:38 UTC (rev 444) @@ -242,7 +242,9 @@ * General Useful Types */ +#ifndef __cplusplus typedef short bool; +#endif #ifndef TRUE #define TRUE 1 #endif