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

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

[avr-libc-dev] [bug #36454] string.h: Error for long long in C90


From: Joerg Wunsch
Subject: [avr-libc-dev] [bug #36454] string.h: Error for long long in C90
Date: Sat, 12 May 2012 14:12:49 +0000
User-agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20100101 Firefox/12.0

Follow-up Comment #3, bug #36454 (project avr-libc):

Another try:

Index: include/string.h
===================================================================
--- include/string.h    (revision 2291)
+++ include/string.h    (working copy)
@@ -110,7 +110,7 @@
 
 extern int ffs (int __val) __ATTR_CONST__;
 extern int ffsl (long __val) __ATTR_CONST__;
-extern int ffsll (long long __val) __ATTR_CONST__;
+__extension__ extern int ffsll (long long __val) __ATTR_CONST__;
 extern void *memccpy(void *, const void *, int, size_t);
 extern void *memchr(const void *, int, size_t) __ATTR_PURE__;
 extern int memcmp(const void *, const void *, size_t) __ATTR_PURE__;

The advantage of using __extension__ over the #ifdef solution
is that it also covers the -std=gnu89 case.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?36454>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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