From bac3533d29262e5341e6869e4cbe11a2afad0349 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Thu, 31 Oct 2019 10:59:46 -0700 Subject: [PATCH] Added missing #ifdef --- microstack/ILibProcessPipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/microstack/ILibProcessPipe.c b/microstack/ILibProcessPipe.c index fce048c..8a53624 100644 --- a/microstack/ILibProcessPipe.c +++ b/microstack/ILibProcessPipe.c @@ -1131,7 +1131,7 @@ void ILibProcessPipe_Process_ReadHandler(void* user) if (pipeObject->buffer == NULL) { ILIBCRITICALEXIT(254); } pipeObject->bufferSize = pipeObject->bufferSize * 2; } - +#ifdef WIN32 if (pipeObject->PAUSED == 0) { if (ReadFile(pipeObject->mPipe_ReadEnd, pipeObject->buffer + pipeObject->readOffset + pipeObject->totalRead, pipeObject->bufferSize - pipeObject->totalRead, NULL, pipeObject->mOverlapped) != TRUE) @@ -1139,6 +1139,7 @@ void ILibProcessPipe_Process_ReadHandler(void* user) break; } } +#endif } #ifdef WIN32 while (pipeObject->PAUSED == 0); // Note: This is actually the end of a do-while loop