aHardyX

Untitled

Sep 28th, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #if defined(__has_include)
  2. /*
  3. Notice that we trust our configure tests more than __has_include(),
  4. notably the latter can return true even if the header exists but isn't
  5. actually usable, as it happens with <type_traits> in non C++11 mode.
  6. So if configure already detected at least one working alternative,
  7. just use it.
  8. */
  9. #if !defined(HAVE_TYPE_TRAITS) && !defined(HAVE_TR1_TYPE_TRAITS)
  10. #if __has_include(<type_traits>)
  11. #define HAVE_TYPE_TRAITS
  12. #elif __has_include(<tr1/type_traits>)
  13. #define HAVE_TR1_TYPE_TRAITS
  14. #endif
  15. #endif
Advertisement
Add Comment
Please, Sign In to add comment