Browse Source

Merge branch 'fix_stbi_write_hdr_scope' of https://github.com/poppolopoppo/stb into working

Sean Barrett 8 years ago
parent
commit
96714b2a13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      stb_image_write.h

+ 1 - 1
stb_image_write.h

@@ -475,7 +475,6 @@ int stbi_write_tga(char const *filename, int x, int y, int comp, const void *dat
 // *************************************************************************************************
 // Radiance RGBE HDR writer
 // by Baldur Karlsson
-#ifndef STBI_WRITE_NO_STDIO
 
 #define stbiw__max(a, b)  ((a) > (b) ? (a) : (b))
 
@@ -630,6 +629,7 @@ int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, i
    return stbi_write_hdr_core(&s, x, y, comp, (float *) data);
 }
 
+#ifndef STBI_WRITE_NO_STDIO
 int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data)
 {
    stbi__write_context s;