Revision 849f1035 libavutil/internal.h

View differences:

libavutil/internal.h
26 26
#ifndef INTERNAL_H
27 27
#define INTERNAL_H
28 28

  
29
#ifndef always_inline
30
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
31
#    define always_inline __attribute__((always_inline)) inline
32
#else
33
#    define always_inline inline
34
#endif
35
#endif
36

  
37 29
#ifndef attribute_used
38 30
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
39 31
#    define attribute_used __attribute__((used))
......
309 301
/* XXX: add ISOC specific test to avoid specific BSD testing. */
310 302
/* better than nothing implementation. */
311 303
/* btw, rintf() is existing on fbsd too -- alex */
312
static always_inline long int lrintf(float x)
304
static av_always_inline long int lrintf(float x)
313 305
{
314 306
#ifdef __MINGW32__
315 307
#  ifdef ARCH_X86_32

Also available in: Unified diff