Skip to content

Commit e96b99b

Browse files
committed
fixed:build error
1 parent 8c98278 commit e96b99b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

XEngine_Module/XEngine_AIApi/AIApi_Chat/AIApi_Chat.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,11 @@ bool CAIApi_Chat::AIApi_Chat_GetStatus(XNETHANDLE xhToken, bool* pbComplete, int
337337
return false;
338338
}
339339

340+
#if XENGINE_VERSION_KERNEL >= 9 && XENGINE_VERSION_MAIN >= 21
340341
if (!APIClient_Http_GetResult(xhToken, pbComplete, pInt_HTTPCode, bWaitExist))
342+
#else
343+
if (!APIClient_Http_GetResult(xhToken, pbComplete, pInt_HTTPCode))
344+
#endif
341345
{
342346
AIApi_IsErrorOccur = true;
343347
AIApi_dwErrorCode = APIClient_GetLastError();

XEngine_Module/XEngine_AIApi/pch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <json/json.h>
1818
#include <thread>
1919
#include <memory>
20+
#include <list>
2021
#include <shared_mutex>
2122
#include <unordered_map>
2223
#include <XEngine_Include/XEngine_CommHdr.h>

0 commit comments

Comments
 (0)