Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 2890
Collapse All | Expand All

(-)ncurses-5.2/c++/cursesw.cc (-2 / +2 lines)
Lines 45-51 Link Here
45
int
45
int
46
NCursesWindow::scanw(const char* fmt, ...)
46
NCursesWindow::scanw(const char* fmt, ...)
47
{
47
{
48
#if defined(__GNUG__)
48
#if (__GNUG__ <= 2)
49
    va_list args;
49
    va_list args;
50
    va_start(args, fmt);
50
    va_start(args, fmt);
51
    char buf[BUFSIZ];
51
    char buf[BUFSIZ];
Lines 65-71 Link Here
65
int
65
int
66
NCursesWindow::scanw(int y, int x, const char* fmt, ...)
66
NCursesWindow::scanw(int y, int x, const char* fmt, ...)
67
{
67
{
68
#if defined(__GNUG__)
68
#if (__GNUG__ <= 2)
69
    va_list args;
69
    va_list args;
70
    va_start(args, fmt);
70
    va_start(args, fmt);
71
    char buf[BUFSIZ];
71
    char buf[BUFSIZ];
(-)ncurses-5.2/c++/cursesw.h (-1 / +1 lines)
Lines 7-13 Link Here
7
#include <etip.h>
7
#include <etip.h>
8
#include <stdio.h>
8
#include <stdio.h>
9
#include <stdarg.h>
9
#include <stdarg.h>
10
#ifdef __MWERKS__
10
#if defined(__MWERKS__) || __GNUG__ >=3
11
/* This is a bogus check, stringstream is actually ANSI C++ standard,
11
/* This is a bogus check, stringstream is actually ANSI C++ standard,
12
 * but old compilers like GCC don't have it, and new compilers like Metrowerks
12
 * but old compilers like GCC don't have it, and new compilers like Metrowerks
13
 * don't have strstream
13
 * don't have strstream

Return to bug 2890