From 602e986824b90c4bb17605f4976985c2f5601f08 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Tue, 30 Jan 2018 05:39:29 -0800 Subject: [PATCH] fix STBI_NO_HDR and STBI_NO_LINEAR to compile correctly even if you don't #include --- stb_image.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stb_image.h b/stb_image.h index ee21554..30052dd 100644 --- a/stb_image.h +++ b/stb_image.h @@ -511,8 +511,8 @@ STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const ch #include #include -#if !defined(STBI_NO_LINEAR) && !defined(STBI_NO_HDR) -#include // ldexp +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) +#include // ldexp, pow #endif #ifndef STBI_NO_STDIO