bugAVR C Runtime Library - Bugs: bug #45033, stdio.h using "long...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #45033: stdio.h using "long long" in C90 mode.

Submitter:  Georg-Johann Lay <gjlayde>
Submitted:  Wed 06 May 2015 10:57:57 AM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  None Assigned to:  None
Percent Complete:  0% Open/Closed:  Open
Release:  1.8.0 Fixed Release:  None

Wed 06 May 2015 10:57:57 AM UTC, original submission:  

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);


Georg-Johann Lay <gjlayde>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gjlayde (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4e86.
    Corresponding source code