Project

General

Profile

Actions

Bug #1059

open

curses.h conflicts with stdbool.h

Added by Andrew Stormont almost 12 years ago. Updated about 8 years ago.

Status:
New
Priority:
Low
Assignee:
Category:
-
Start date:
2011-05-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

When including both curses.h and stdbool.h the following error is seen:

/usr/include/curses.h:100: error: two ore more data types in declaration specifiers

The attached patch fixes the issue on my machine.


Files

curses.diff (1.15 KB) curses.diff Andrew Stormont, 2011-05-23 12:04 PM
Actions #1

Updated by Ryan Zezeski about 8 years ago

  • Assignee set to Ryan Zezeski

http://zinascii.com/pub/illumos/gate/1059/webrev/

According to POSIX, stdbool.h must define the bool macro; so I used that
for the conditional.

I tested with this source file. Before, it gives the error as the
original ticket described; after, it doesn't.

http://zinascii.com/pub/illumos/gate/1059/test-curses.c

Actions

Also available in: Atom PDF