URL: <http://savannah.nongnu.org/bugs/?45033>
Summary: stdio.h using "long long" in C90 mode. Project: AVR C Runtime Library Submitted by: gjlayde Submitted on: Mi 06 Mai 2015 10:57:57 GMT Category: Library Severity: 3 - Normal Priority: 5 - Normal Item Group: Header files Status: None Percent Complete: 0% Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Release: 1.8.0 Fixed Release: None _______________________________________________________ Details: stdio.h won't work with C90, which is a bit of annoying when testing avr-gcc. Fix as indicated (add GCC's __extension__) will make it work: Index: include/stdio.h =================================================================== --- include/stdio.h (revision 2474) +++ include/stdio.h (working copy) @@ -944,7 +944,7 @@ static __inline__ int fflush(FILE *strea #if 1 /* ??? unimplemented */ #define BUFSIZ 1024 #define _IONBF 0 -typedef long long fpos_t; +__extension__ typedef long long fpos_t; extern int fgetpos(FILE *stream, fpos_t *pos); extern FILE *fopen(const char *path, const char *mode); extern FILE *freopen(const char *path, const char *mode, FILE *stream); _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?45033> _______________________________________________ Nachricht gesendet von/durch Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev