[BACK]Return to stdbool.h CVS log [TXT][DIR] Up to [local] / src / include

Diff for /src/include/stdbool.h between version 1.2 and 1.3

version 1.2, 1999/09/24 23:09:09 version 1.3, 2004/10/02 12:55:31
Line 8 
Line 8 
 #ifndef _STDBOOL_H_  #ifndef _STDBOOL_H_
 #define _STDBOOL_H_  #define _STDBOOL_H_
   
   #ifndef __cplusplus
   
   #if defined(__GNUC__) && __GNUC__ >= 3
   /* Support for _C99: type _Bool is already built-in. */
   #define false   0
   #define true    1
   
   #else
 /* `_Bool' type must promote to `int' or `unsigned int'. */  /* `_Bool' type must promote to `int' or `unsigned int'. */
 typedef enum {  typedef enum {
         false = 0,          false = 0,
Line 18 
Line 26 
 #define false   false  #define false   false
 #define true    true  #define true    true
   
   #endif
   
 /* User visible type `bool' is provided as a macro which may be redefined */  /* User visible type `bool' is provided as a macro which may be redefined */
 #define bool _Bool  #define bool _Bool
   
   #else /* __cplusplus */
   #define _Bool   bool
   #define bool    bool
   #define false   false
   #define true    true
   #endif /* __cplusplus */
   
 /* Inform that everything is fine */  /* Inform that everything is fine */
 #define __bool_true_false_are_defined 1  #define __bool_true_false_are_defined 1

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3