header.hpp 859 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright Andrey Semashev 2020.
  3. * Distributed under the Boost Software License, Version 1.0.
  4. * (See accompanying file LICENSE_1_0.txt or copy at
  5. * http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #if !defined(BOOST_WINAPI_ENABLE_WARNINGS)
  8. #if defined(_MSC_VER) && !(defined(__INTEL_COMPILER) || defined(__clang__))
  9. #pragma warning(push, 3)
  10. // nonstandard extension used : nameless struct/union
  11. #pragma warning(disable: 4201)
  12. // Inconsistent annotation for 'X'
  13. #pragma warning(disable: 28251)
  14. #elif defined(__GNUC__) && !(defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)) \
  15. && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406
  16. #pragma GCC diagnostic push
  17. // ISO C++ 1998 does not support 'long long'
  18. #pragma GCC diagnostic ignored "-Wlong-long"
  19. #endif
  20. #endif // !defined(BOOST_WINAPI_ENABLE_WARNINGS)