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/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to