stdbool.h problem

This is stdbool.h on my system, it looks VERY wrong,
Look for “???”

What is weird is that someone sent me some source that he
is able to compile (we are both on 6.1)

Only thing different that I am aware of is that I installed
ecpp stuff ?

/*

  • stdbool.h Macros for boolean tests
  • Copyright by QNX Software Systems Limited 2001. All rights reserved.
    */

??? #ifndef _STDARG_H_INCLUDED
??? #define _STDARG_H_INCLUDED


#ifndef __PLATFORM_H_INCLUDED
#include <sys/platform.h>
#endif

#ifndef __cplusplus
_C_STD_BEGIN
typedef char bool;
_C_STD_END

??? #define bool _Bool;
#define false 0
#define true 1
#endif
#define __bool_true_false_are_defined 1
#endif

Mario Charest <mcharest@clipzinformatic.com> wrote:

This is stdbool.h on my system, it looks VERY wrong,
Look for “???”

It is very wrong, it was one very very sick header file,
This has been fixed for 6.1.1.

Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Core OS Technology Group
(613)-591-0931 http://www.qnx.com/