Project

General

Profile

Bug #1059

curses.h conflicts with stdbool.h

Added by Andrew Stormont about 9 years ago. Updated over 5 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:

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

History

#1

Updated by Ryan Zezeski over 5 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

Also available in: Atom PDF