Ticket #239 (accepted defect) — at Version 3

Opened 16 years ago

Last modified 15 years ago

double declaration of bool false and true (conflicting with stdbool.h)

Reported by: Patrick Winnertz <winnie@…> Owned by: metux
Priority: major Milestone:
Component: mc-core Version: 4.6.2
Keywords: committed-master Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description (last modified by metux) (diff)

Hey,
There is already a definition of bool in C, which uses also false and true,
therefore mc fails to build with ncurses currently as ncurses include
stdbool.h> where these are defined:

#ifndef _STDBOOL_H
#define _STDBOOL_H

#ifndef cplusplus

#define bool _Bool
#define true 1
#define false 0

#else /* cplusplus */
.....
#endif

So we should remove this completly from mhl/* and use this instead.


branch:239_fix_bool
changeset:540fec5a7ab46e928536fdc38c6b3dfdf4483a8a

(this is for mc-4.6 branch, for master see #240)

Change History

comment:1 Changed 16 years ago by Patrick Winnertz

  • id set to 239

This message has 0 attachment(s)

comment:2 Changed 16 years ago by metux

  • Owner set to metux
  • Status changed from new to accepted
  • Description modified (diff)
  • Milestone changed from 4.7 to 4.6.3

comment:3 Changed 16 years ago by metux

  • Keywords review added
  • Description modified (diff)
Note: See TracTickets for help on using tickets.