This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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] |
Hi, On May 2 19:14, zosrothko wrote: > Hi > > This is a patch for exposing the new stdio functions added by the > c++11 standard. Without this patch the snprintf for example is not > exposed as > > $ cat hello.cpp > #include <cstdio> > > int main(int argc, char** argv) { > char buf[24]; > snprintf(buf, 2, "", 2); > return 0; > } > > $ g++ -std=c++11 hello.cpp > hello.cpp: In function âint main(int, char**)â: > hello.cpp:4:30: erreur: âsnprintfâ was not declared in this scope > snprintf("", 2, "", 2); > > $ g++ -xc++ -std=c++11 -dM -E - < /dev/null | sort | grep ANSI > #define __STRICT_ANSI__ 1 > > $ g++ -dM -E - < /dev/null | sort | grep ANSI > > $ > > Regards I applied a simpler patch which just enables the C99 printf/scanf functions for C++11 using the already existing declaration block. Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
Attachment:
pgpVvxvKLtoAO.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |