godot/thirdparty/tinyexr/tinyexr.cc
Rémi Verschelde 31dbc59c39
tinyexr: Sync with upstream 1.0.1
Removes miniz as a bundled dependency, relies on our own zlib instead.

Includes a couple commits ahead of `v1.0.1` tag to fix MinGW builds.

(cherry picked from commit 46d3effa99)
2021-11-20 11:48:49 +01:00

13 lines
221 B
C++

#if defined(_WIN32)
#ifndef NOMINMAX
#define NOMINMAX
#endif
#endif
// -- GODOT start --
#include <zlib.h> // Should come before including tinyexr.
// -- GODOT end --
#define TINYEXR_IMPLEMENTATION
#include "tinyexr.h"