Revision 52476c1b libavutil/mem.h

View differences:

libavutil/mem.h
26 26
#ifndef AVUTIL_MEM_H
27 27
#define AVUTIL_MEM_H
28 28

  
29
#include "common.h"
30

  
29 31
#if defined(__ICC) || defined(__SUNPRO_C)
30 32
    #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
31 33
    #define DECLARE_ASM_CONST(n,t,v)    const t __attribute__ ((aligned (n))) v
......
42 44
    #define DECLARE_ASM_CONST(n,t,v)    static const t v
43 45
#endif
44 46

  
45
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
47
#if AV_GCC_VERSION_AT_LEAST(3,1)
46 48
    #define av_malloc_attrib __attribute__((__malloc__))
47 49
#else
48 50
    #define av_malloc_attrib
49 51
#endif
50 52

  
51
#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2)
53
#if AV_GCC_VERSION_AT_LEAST(4,3)
52 54
    #define av_alloc_size(n) __attribute__((alloc_size(n)))
53 55
#else
54 56
    #define av_alloc_size(n)

Also available in: Unified diff