Ticket #239 (new defect) — at Initial Version

Opened 15 years ago

Last modified 14 years ago

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

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

Description

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.

Note: See TracTickets for help on using tickets.