Revision 0374152f libavutil/internal.h

View differences:

libavutil/internal.h
46 46
#endif
47 47
#endif
48 48

  
49

  
50
/**
51
 * Mark a variable as used and prevent the compiler from optimizing it away.
52
 * This is useful for asm that accesses varibles in ways that the compiler does not
53
 * understand
54
 */
55
#ifndef attribute_used
56
#if AV_GCC_VERSION_AT_LEAST(3,1)
57
#    define attribute_used __attribute__((used))
58
#else
59
#    define attribute_used
60
#endif
61
#endif
62

  
63 49
#ifndef INT16_MIN
64 50
#define INT16_MIN       (-0x7fff - 1)
65 51
#endif

Also available in: Unified diff