Changeset c7021d9
- Timestamp:
- 05/29/14 16:00:48 (7 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 9b42f3e
- Parents:
- 5809145
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.in
r10f924c rc7021d9 111 111 gl_VISIBILITY 112 112 113 gcc_PACKED 114 gcc_DEPRECATED 115 gcc_UNUSED 116 gcc_PURE 117 gcc_FORMAT 113 118 114 119 # Check for libtool -
lib/libtrace.h.in
r10f924c rc7021d9 153 153 #endif 154 154 155 /* Function does not depend on anything but its 156 * parameters, used to hint gcc's optimisations 157 * 158 * TODO: Find a way to check for these that is not gcc-specific 159 */ 160 #if __GNUC__ >= 3 155 /* Ensure these gcc optimisation attributes are defined consistently, 156 * without requiring users to need to have access to the config.h 157 * generated by running configure. 158 */ 159 160 #define LT_USE_PACKED @HAVE_ATTRIBUTE_PACKED@ 161 #define LT_USE_UNUSED @HAVE_ATTRIBUTE_UNUSED@ 162 #define LT_USE_DEPRECATED @HAVE_ATTRIBUTE_DEPRECATED@ 163 #define LT_USE_PURE @HAVE_ATTRIBUTE_PURE@ 164 #define LT_USE_PRINTF @HAVE_ATTRIBUTE_FORMAT@ 165 166 #if LT_USE_PACKED 167 # define PACKED __attribute__((packed)) 168 #else 169 # define PACKED 170 #endif 171 172 #if LT_USE_UNUSED 173 # define UNUSED __attribute__((unused)) 174 #else 175 # define UNUSED 176 #endif 177 178 #if LT_USE_DEPRECATED 161 179 # define DEPRECATED __attribute__((deprecated)) 162 # define SIMPLE_FUNCTION __attribute__((pure))163 # define UNUSED __attribute__((unused))164 # define PACKED __attribute__((packed))165 # define PRINTF(formatpos,argpos) __attribute__((format(printf,formatpos,argpos)))166 180 #else 167 181 # define DEPRECATED 182 #endif 183 184 #if LT_USE_PURE 185 # define SIMPLE_FUNCTION __attribute__((pure)) 186 #else 168 187 # define SIMPLE_FUNCTION 169 # define UNUSED 170 # define PACKED 171 # define PRINTF(formatpos,argpos) 188 #endif 189 190 #if LT_USE_PRINTF 191 # define PRINTF(formatpos, argpos) __attribute__((format(printf,formatpos, argpos))) 192 #else 193 # define PRINTF(formatpos, argpos) 172 194 #endif 173 195 -
libwandio/wandio.h
r10f924c rc7021d9 51 51 52 52 // TODO: Use a proper check for these attribute rather than gcc version check 53 #if __GNUC__ >= 354 # define DEPRECATED __attribute__((deprecated))55 # define SIMPLE_FUNCTION __attribute__((pure))56 # define UNUSED __attribute__((unused))57 # define PACKED __attribute__((packed))58 # define PRINTF(formatpos,argpos) __attribute__((format(printf,formatpos,argpos)))59 #else60 # define DEPRECATED61 # define SIMPLE_FUNCTION62 # define UNUSED63 # define PACKED64 # define PRINTF(formatpos,argpos)65 #endif66 67 53 68 54 /** @file
Note: See TracChangeset
for help on using the changeset viewer.