1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

Prevented zlib headers messing-up use of the fdopen() function.

This commit is contained in:
jules 2012-10-31 10:03:20 +00:00
parent be73832aa9
commit dbaa9b9cc1
3 changed files with 6 additions and 0 deletions

View file

@ -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");

View file

@ -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

View file

@ -99,6 +99,7 @@ namespace pnglibNamespace
#undef max
#undef min
#undef fdopen
#if JUCE_MSVC
#pragma warning (pop)