comparison common.h @ 100:5d02abb9a7e5 libavutil

attribute_deprecated
author michael
date Sun, 20 Aug 2006 10:42:11 +0000
parents a3d5e8b048e1
children 5111e87117b7
comparison
equal deleted inserted replaced
99:a3d5e8b048e1 100:5d02abb9a7e5
51 #ifndef attribute_unused 51 #ifndef attribute_unused
52 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) 52 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
53 # define attribute_unused __attribute__((unused)) 53 # define attribute_unused __attribute__((unused))
54 #else 54 #else
55 # define attribute_unused 55 # define attribute_unused
56 #endif
57 #endif
58
59 #ifndef attribute_deprecated
60 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
61 # define attribute_deprecated __attribute__((deprecated))
62 #else
63 # define attribute_deprecated
56 #endif 64 #endif
57 #endif 65 #endif
58 66
59 #ifndef EMULATE_INTTYPES 67 #ifndef EMULATE_INTTYPES
60 # include <inttypes.h> 68 # include <inttypes.h>