halfLimits.h 642 B

1234567891011121314151617181920212223242526
  1. //
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. // Copyright Contributors to the OpenEXR Project.
  4. //
  5. #ifndef INCLUDED_HALF_LIMITS_H
  6. #define INCLUDED_HALF_LIMITS_H
  7. // Warn if half.h hasn't being included
  8. #ifndef IMATH_HALF_H_
  9. //
  10. // This file is now deprecated. It previously included the
  11. // specialization of std::numeric_limits<half>, but those now appear
  12. // directly in half.h, because they should be regarded as inseperable
  13. // from the half class.
  14. //
  15. #ifdef __GNUC__
  16. #warning "ImathLimits is deprecated; use #include <half.h>"
  17. #else
  18. #pragma message("ImathLimits is deprecated; use #include <half.h>")
  19. #endif
  20. #include "half.h"
  21. #endif
  22. #endif