avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #45033] stdio.h using "long long" in C90 mode.


From: Georg-Johann Lay
Subject: [avr-libc-dev] [bug #45033] stdio.h using "long long" in C90 mode.
Date: Wed, 06 May 2015 10:57:59 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]