ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.h
(Generate patch)

Comparing libecb/ecb.h (file contents):
Revision 1.143 by root, Fri Oct 17 10:56:48 2014 UTC vs.
Revision 1.144 by root, Fri Oct 17 11:02:20 2014 UTC

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_CPP11 339#if ECB_CPP11
340 // older implementations might have problems with decltype(x)::type, work around it
341 struct ecb_decltype_t { typedef T type; };
340 #define ecb_decltype(x) decltype (x) 342 #define ecb_decltype(x) ecb_decltype_t<decltype(x)>::type
341#elif ECB_GCC_VERSION(3,0) || ECB_CLANG_VERSION(2,8) 343#elif ECB_GCC_VERSION(3,0) || ECB_CLANG_VERSION(2,8)
342 #define ecb_decltype(x) __typeof__ (x) 344 #define ecb_decltype(x) __typeof__ (x)
343#endif 345#endif
344 346
345#if _MSC_VER >= 1300 347#if _MSC_VER >= 1300

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines