TinyExr.cpp 841 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include <AnKi/Config.h>
  6. #include <ThirdParty/ZLib/zlib.h>
  7. #define TINYEXR_USE_MINIZ 0
  8. #define TINYEXR_IMPLEMENTATION 1
  9. #if ANKI_COMPILER_GCC_COMPATIBLE
  10. # pragma GCC diagnostic push
  11. # pragma GCC diagnostic ignored "-Wunused-but-set-variable"
  12. # pragma GCC diagnostic ignored "-Wunused-function"
  13. # pragma GCC diagnostic ignored "-Wconversion"
  14. # pragma GCC diagnostic ignored "-Wunused-variable"
  15. #elif ANKI_COMPILER_MSVC
  16. # pragma warning(push)
  17. # pragma warning(disable : 4018 4389 4189 4505 4706)
  18. #endif
  19. #include <ThirdParty/TinyExr/tinyexr.h>
  20. #if ANKI_COMPILER_GCC_COMPATIBLE
  21. # pragma GCC diagnostic pop
  22. #elif ANKI_COMPILER_MSVC
  23. # pragma warning(pop)
  24. #endif