… | |
… | |
306 | #define ECB_STRINGIFY(a) ECB_STRINGIFY_(a) |
306 | #define ECB_STRINGIFY(a) ECB_STRINGIFY_(a) |
307 | |
307 | |
308 | #define ecb_function_ ecb_inline |
308 | #define ecb_function_ ecb_inline |
309 | |
309 | |
310 | #if ECB_GCC_VERSION(3,1) || ECB_CLANG_VERSION(2,8) |
310 | #if ECB_GCC_VERSION(3,1) || ECB_CLANG_VERSION(2,8) |
311 | #define ecb_attribute(attrlist) __attribute__(attrlist) |
311 | #define ecb_attribute(attrlist) __attribute__ (attrlist) |
312 | #else |
312 | #else |
313 | #define ecb_attribute(attrlist) |
313 | #define ecb_attribute(attrlist) |
314 | #endif |
314 | #endif |
315 | |
315 | |
316 | #if ECB_GCC_VERSION(3,1) || ECB_CLANG_BUILTIN(__builtin_constant_p) |
316 | #if ECB_GCC_VERSION(3,1) || ECB_CLANG_BUILTIN(__builtin_constant_p) |
… | |
… | |
335 | #define ecb_prefetch(addr,rw,locality) |
335 | #define ecb_prefetch(addr,rw,locality) |
336 | #endif |
336 | #endif |
337 | |
337 | |
338 | /* no emulation for ecb_decltype */ |
338 | /* no emulation for ecb_decltype */ |
339 | #if ECB_GCC_VERSION(4,5) |
339 | #if ECB_GCC_VERSION(4,5) |
340 | #define ecb_decltype(x) __decltype(x) |
340 | #define ecb_decltype(x) __decltype (x) |
341 | #elif ECB_GCC_VERSION(3,0) |
341 | #elif ECB_GCC_VERSION(3,0) |
342 | #define ecb_decltype(x) __typeof(x) |
342 | #define ecb_decltype(x) __typeof (x) |
|
|
343 | #elif ECB_CPP11 |
|
|
344 | #define ecb_decltype(x) decltype (x) |
343 | #endif |
345 | #endif |
344 | |
346 | |
345 | #if _MSC_VER >= 1300 |
347 | #if _MSC_VER >= 1300 |
346 | #define ecb_deprecated __declspec(deprecated) |
348 | #define ecb_deprecated __declspec(deprecated) |
347 | #else |
349 | #else |