[Midnight Commander] #239: double declaration of bool false and true (conflicting with stdbool.h)
- From: "Ticket System" <tickets midnight-commander org>
- To: winnie debian org
- Cc: mc-devel gnome org
- Subject: [Midnight Commander] #239: double declaration of bool false and true (conflicting with stdbool.h)
- Date: Tue, 03 Feb 2009 16:26:06 -0000
#239: double declaration of bool false and true (conflicting with stdbool.h)
--------------------------------------------------+-------------------------
Reporter: Patrick Winnertz <winnie debian org> | Owner:
Type: defect | Status: new
Priority: major | Milestone: 4.7
Component: mc-core | Version: 4.6.2
Keywords: | Blocking:
Blockedby: |
--------------------------------------------------+-------------------------
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.
--
Ticket URL: <www.midnight-commander.org/ticket/239>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]