1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

Fixed #ifdef

This commit is contained in:
Bryan Roe
2020-05-07 12:31:58 -07:00
parent 2ae485dad8
commit 0dc052319c

View File

@@ -973,6 +973,7 @@ typedef struct ILibBaseChain
void *node; void *node;
}ILibBaseChain; }ILibBaseChain;
#ifdef WIN32
typedef struct ILibChain_WaitHandleInfo typedef struct ILibChain_WaitHandleInfo
{ {
void *node; void *node;
@@ -980,6 +981,7 @@ typedef struct ILibChain_WaitHandleInfo
void *user; void *user;
struct timeval expiration; struct timeval expiration;
}ILibChain_WaitHandleInfo; }ILibChain_WaitHandleInfo;
#endif
void* ILibMemory_AllocateA_Init(void *buffer) void* ILibMemory_AllocateA_Init(void *buffer)
{ {
@@ -3328,7 +3330,7 @@ ILibExportMethod void ILibStartChain(void *Chain)
chain->node = ILibLinkedList_Remove(chain->node); chain->node = ILibLinkedList_Remove(chain->node);
} }
#ifdef WIN32
for (vX = 0; vX < FD_SETSIZE; ++vX) for (vX = 0; vX < FD_SETSIZE; ++vX)
{ {
if (chain->WaitHandles[vX] != NULL && chain->WaitHandles[ILibChain_HandleInfoIndex(vX)] == NULL) if (chain->WaitHandles[vX] != NULL && chain->WaitHandles[ILibChain_HandleInfoIndex(vX)] == NULL)
@@ -3337,6 +3339,7 @@ ILibExportMethod void ILibStartChain(void *Chain)
} }
} }
ILibLinkedList_Destroy(chain->auxSelectHandles); ILibLinkedList_Destroy(chain->auxSelectHandles);
#endif
if (gILibChain == Chain) { gILibChain = NULL; } // Reset the global instance if it was set if (gILibChain == Chain) { gILibChain = NULL; } // Reset the global instance if it was set