Changeset 1097bb7 for libcfa/src/stdhdr


Ignore:
Timestamp:
Mar 25, 2019, 10:45:18 AM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
eb60b04
Parents:
e73d449
Message:

cast boolean constants false/true to tyoe _Bool in stdbool.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/stdhdr/stdbool.h

    re73d449 r1097bb7  
    1010// Created On       : Mon Jul  4 23:25:26 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul  5 20:39:51 2016
    13 // Update Count     : 12
     12// Last Modified On : Mon Mar 25 08:00:08 2019
     13// Update Count     : 15
    1414//
    1515
    1616extern "C" {
    1717#include_next <stdbool.h>                                                               // has internal check for multiple expansion
     18
     19// allows printing as true/false
     20#if defined( true )
     21#undef true
     22#define true ((_Bool)1)
     23#endif // true
     24
     25#if defined( false )
     26#undef false
     27#define false ((_Bool)0)
     28#endif // false
    1829} // extern "C"
    1930
Note: See TracChangeset for help on using the changeset viewer.