/** * @file tinyexr_impl.cc * @brief Implementation file for tinyexr */ #if defined(HAVE_CONFIG_H) #include "config.h" #endif // zlib #if defined(HAVE_ZLIB) #define TINYEXR_USE_MINIZ 0 #include #else #define TINYEXR_USE_MINIZ 1 #endif #ifndef HAVE_STRNLEN #include #include inline size_t strnlen(const char *s, size_t maxlen) { const char *p=(const char *) memchr(s,0,maxlen); return p ? p-s : maxlen; } #endif #define TINYEXR_USE_THREAD 0 #define TINYEXR_IMPLEMENTATION #include