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:
parent
be73832aa9
commit
dbaa9b9cc1
3 changed files with 6 additions and 0 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ namespace pnglibNamespace
|
|||
|
||||
#undef max
|
||||
#undef min
|
||||
#undef fdopen
|
||||
|
||||
#if JUCE_MSVC
|
||||
#pragma warning (pop)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue