ncurses C++ include issue

SolusRaion

Member
Jan 3, 2025
35
19
8
if you find yourself in a situation where ncurses++ complains about headers (fixincludes should fix this, but still sharing)

in curses.h:
Code:
#if 1
#include <stdint.h>
#endif

#ifdef __cplusplus
#else
#if 0
#include <stdnoreturn.h>
#undef GCC_NORETURN

Change this section to this:

Code:
#if 1 && defined(__c99)
#include <stdint.h>
#endif

#ifdef __cplusplus
#include <inttypes.h>
#else
#if 0
#include <stdnoreturn.h>
#undef GCC_NORETURN

This will fix C++ header issues. stdint.h on IRIX is only for c99
 

About us

  • Silicon Graphics User Group (SGUG) is a community for users, developers, and admirers of Silicon Graphics (SGI) products. We aim to be a friendly hobbyist community for discussing all aspects of SGIs, including use, software development, the IRIX Operating System, and troubleshooting, as well as facilitating hardware exchange.

User Menu