comparison common.h @ 1982:800db77ec7c8 libavcodec

avoid macro conflicts
author alex
date Mon, 26 Apr 2004 09:43:55 +0000
parents f74f306c30b5
children f8ef6f664234
comparison
equal deleted inserted replaced
1981:1ba490d60bb9 1982:800db77ec7c8
74 /* Suppress restrict if it was not defined in config.h. */ 74 /* Suppress restrict if it was not defined in config.h. */
75 #ifndef restrict 75 #ifndef restrict
76 # define restrict 76 # define restrict
77 #endif 77 #endif
78 78
79 #ifndef always_inline
79 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) 80 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
80 # define always_inline __attribute__((always_inline)) inline 81 # define always_inline __attribute__((always_inline)) inline
81 #else 82 #else
82 # define always_inline inline 83 # define always_inline inline
83 #endif 84 #endif
84 85 #endif
86
87 #ifndef attribute_used
85 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) 88 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
86 # define attribute_used __attribute__((used)) 89 # define attribute_used __attribute__((used))
87 #else 90 #else
88 # define attribute_used 91 # define attribute_used
92 #endif
89 #endif 93 #endif
90 94
91 #ifndef EMULATE_INTTYPES 95 #ifndef EMULATE_INTTYPES
92 # include <inttypes.h> 96 # include <inttypes.h>
93 #else 97 #else