X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com X-Virus-Scanned: Debian amavisd-new at nospam.ludd.ltu.se X-Spam-Flag: NO X-Spam-Score: -1.245 X-Spam-Level: X-Spam-Status: No, score=-1.245 tagged_above=-9999 required=10.31 tests=[BAYES_00=-1.9, SPF_SOFTFAIL=0.665, T_RP_MATCHES_RCVD=-0.01] autolearn=no autolearn_force=no Date: Fri, 21 Sep 2018 16:09:21 +0200 From: "Martin Str|mberg (ams AT ludd DOT ltu DOT se) [via djgpp-workers AT delorie DOT com]" To: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp-workers AT delorie DOT com]" Subject: Re: stdbool.h Message-ID: <20180921140921.GA39682@muddus.ludd.ltu.se> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, Sep 15, 2018 at 02:40:27PM +0300, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp-workers AT delorie DOT com] wrote: > On 9/14/18, Ozkan Sezer wrote: > > @@ -19,6 +18,10 @@ > > #include > > #include > > > > +typedef enum { > > + false = 0, true = 1 > > +} bool; > > + > > int > > _open(const char* filename, int oflag) > > { > > Applies this now as obvious. I don't know if it's important but I think the above makes sizeof(bool)==4. This is different from sizeof(unsigned char), which is what I think you added to stdbool.h. -- MartinS