This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60498] error: 'snprintf' was not declared in this scope


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Definitely a Cygwin bug, their header should test:

#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus
>= 201103L)

That way the functions will be defined for any -std=gnuNN mode, for C99, and
for C++11, which would be correct.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]