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

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

[avr-libc-dev] Fix inline, always_inline in util/delay{_basic.h, .in}


From: Senthil Kumar Selvaraj
Subject: [avr-libc-dev] Fix inline, always_inline in util/delay{_basic.h, .in}
Date: Wed, 15 Oct 2014 12:12:54 +0530
User-agent: Mutt/1.5.23 (2014-03-12)

This patch replaces occurrences of inline with __inline__ and 
always_inline with __always_inline__, as recommended in
http://lists.nongnu.org/archive/html/avr-libc-dev/2014-10/msg00004.html
in delay related header files as well.

If ok, could someone commit please? I don't have commit access.

Regards
Senthil

ChangeLog

2014-10-15  Senthil Kumar Selvaraj <address@hidden>
        * include/util/delay.h.in: Replace inline with __inline__ and 
        always_inline with __always_inline__.
        * include/util/delay_basic.h: Likewise.


diff --git avr-libc/include/util/delay.h.in avr-libc/include/util/delay.h.in
index 4a9d6c8..67c8df6 100644
--- avr-libc/include/util/delay.h.in
+++ avr-libc/include/util/delay.h.in
@@ -81,8 +81,8 @@
 */
 
 #if !defined(__DOXYGEN__)
-static inline void _delay_us(double __us) __attribute__((always_inline));
-static inline void _delay_ms(double __ms) __attribute__((always_inline));
+static __inline__ void _delay_us(double __us) 
__attribute__((__always_inline__));
+static __inline__ void _delay_ms(double __ms) 
__attribute__((__always_inline__));
 #endif
 
 #ifndef F_CPU
diff --git avr-libc/include/util/delay_basic.h 
avr-libc/include/util/delay_basic.h
index 4191838..9bf1e45 100644
--- avr-libc/include/util/delay_basic.h
+++ avr-libc/include/util/delay_basic.h
@@ -37,8 +37,8 @@
 #include <inttypes.h>
 
 #if !defined(__DOXYGEN__)
-static inline void _delay_loop_1(uint8_t __count) 
__attribute__((always_inline));
-static inline void _delay_loop_2(uint16_t __count) 
__attribute__((always_inline));
+static __inline__ void _delay_loop_1(uint8_t __count) 
__attribute__((__always_inline__));
+static __inline__ void _delay_loop_2(uint16_t __count) 
__attribute__((__always_inline__));
 #endif
 
 /** \file */



reply via email to

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