diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h index b23cd0a12b..26639ec500 100644 --- a/modules/juce_core/native/juce_posix_SharedCode.h +++ b/modules/juce_core/native/juce_posix_SharedCode.h @@ -1041,6 +1041,10 @@ public: { jassert (dest != nullptr); + #ifdef fdopen + #error // the zlib headers define this function as NULL! + #endif + if (readHandle == 0 && childPID != 0) readHandle = fdopen (pipeHandle, "r"); diff --git a/modules/juce_core/zip/juce_GZIPDecompressorInputStream.cpp b/modules/juce_core/zip/juce_GZIPDecompressorInputStream.cpp index 3f8ed5b8fa..fc7cab315d 100644 --- a/modules/juce_core/zip/juce_GZIPDecompressorInputStream.cpp +++ b/modules/juce_core/zip/juce_GZIPDecompressorInputStream.cpp @@ -61,6 +61,7 @@ namespace zlibNamespace #include "zlib/trees.c" #include "zlib/zutil.c" #undef Byte + #undef fdopen #if JUCE_CLANG #pragma clang diagnostic pop diff --git a/modules/juce_graphics/image_formats/juce_PNGLoader.cpp b/modules/juce_graphics/image_formats/juce_PNGLoader.cpp index f569594ebc..02d1e69953 100644 --- a/modules/juce_graphics/image_formats/juce_PNGLoader.cpp +++ b/modules/juce_graphics/image_formats/juce_PNGLoader.cpp @@ -99,6 +99,7 @@ namespace pnglibNamespace #undef max #undef min +#undef fdopen #if JUCE_MSVC #pragma warning (pop)