X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstdbool_.h;h=3177ae03cf48588f39d4cfae235889d3a010f376;hb=37b09d7dc2c5956fbd70c211ed164a9ee1f7e349;hp=3dbb51b24b68b20621d7a6bb61d17cc75d3f9082;hpb=825671cfb3ffecf2cba59dabb71cc99a81ef488b;p=gnulib.git diff --git a/lib/stdbool_.h b/lib/stdbool_.h index 3dbb51b24..3177ae03c 100644 --- a/lib/stdbool_.h +++ b/lib/stdbool_.h @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _STDBOOL_H #define _STDBOOL_H @@ -56,6 +56,7 @@ /* BeOS already #defines false 0, true 1. We use the same definitions below, but temporarily we have to #undef them. */ #ifdef __BEOS__ +# include /* defines bool but not _Bool */ # undef false # undef true #endif @@ -69,7 +70,7 @@ (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' (see ISO C 99 6.3.1.1.(2)). So we add a negative value to the enum; this ensures that '_Bool' promotes to 'int'. */ -#ifndef __cplusplus +#if !(defined __cplusplus || defined __BEOS__) # if !@HAVE__BOOL@ # if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1) /* Avoid stupid "warning: _Bool is a keyword in ISO C99". */