Skip to content

Commit 55df76e

Browse files
author
WinterPu
committed
【Example 421】 GA Change
1. Modify C++ 20 Macros
1 parent b460001 commit 55df76e

36 files changed

Lines changed: 171 additions & 171 deletions

File tree

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/AudioMixing/AudioMixingWidget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void UAudioMixingWidget::FUserRtcEventHandlerEx::onJoinChannelSuccess(const agor
185185
if (!IsWidgetValid())
186186
return;
187187

188-
#if AGORA_CPP_VER_20_OR_LATER
188+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
189189
AsyncTask(ENamedThreads::GameThread, [=, this]()
190190
#else
191191
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -205,7 +205,7 @@ void UAudioMixingWidget::FUserRtcEventHandlerEx::onLeaveChannel(const agora::rtc
205205
if (!IsWidgetValid())
206206
return;
207207

208-
#if AGORA_CPP_VER_20_OR_LATER
208+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
209209
AsyncTask(ENamedThreads::GameThread, [=, this]()
210210
#else
211211
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -225,7 +225,7 @@ void UAudioMixingWidget::FUserRtcEventHandlerEx::onUserJoined(const agora::rtc::
225225
if (!IsWidgetValid())
226226
return;
227227

228-
#if AGORA_CPP_VER_20_OR_LATER
228+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
229229
AsyncTask(ENamedThreads::GameThread, [=, this]()
230230
#else
231231
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -245,7 +245,7 @@ void UAudioMixingWidget::FUserRtcEventHandlerEx::onUserOffline(const agora::rtc:
245245
if (!IsWidgetValid())
246246
return;
247247

248-
#if AGORA_CPP_VER_20_OR_LATER
248+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
249249
AsyncTask(ENamedThreads::GameThread, [=, this]()
250250
#else
251251
AsyncTask(ENamedThreads::GameThread, [=]()

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/AudioSpectrum/AudioSpectrumWidget.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ void UAudioSpectrumWidget::FUserRtcEventHandler::onJoinChannelSuccess(const char
383383
if (!IsWidgetValid())
384384
return;
385385

386-
#if AGORA_CPP_VER_20_OR_LATER
386+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
387387
AsyncTask(ENamedThreads::GameThread, [=, this]()
388388
#else
389389
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -406,7 +406,7 @@ void UAudioSpectrumWidget::FUserRtcEventHandler::onUserJoined(agora::rtc::uid_t
406406
if (!IsWidgetValid())
407407
return;
408408

409-
#if AGORA_CPP_VER_20_OR_LATER
409+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
410410
AsyncTask(ENamedThreads::GameThread, [=, this]()
411411
#else
412412
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -427,7 +427,7 @@ void UAudioSpectrumWidget::FUserRtcEventHandler::onUserOffline(agora::rtc::uid_t
427427
if (!IsWidgetValid())
428428
return;
429429

430-
#if AGORA_CPP_VER_20_OR_LATER
430+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
431431
AsyncTask(ENamedThreads::GameThread, [=, this]()
432432
#else
433433
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -448,7 +448,7 @@ void UAudioSpectrumWidget::FUserRtcEventHandler::onLeaveChannel(const agora::rtc
448448
if (!IsWidgetValid())
449449
return;
450450

451-
#if AGORA_CPP_VER_20_OR_LATER
451+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
452452
AsyncTask(ENamedThreads::GameThread, [=, this]()
453453
#else
454454
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -474,7 +474,7 @@ void UAudioSpectrumWidget::FUserIMediaPlayerSourceObserver::onPlayerSourceStateC
474474
if (!IsWidgetValid())
475475
return;
476476

477-
#if AGORA_CPP_VER_20_OR_LATER
477+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
478478
AsyncTask(ENamedThreads::GameThread, [=, this]()
479479
#else
480480
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -565,7 +565,7 @@ bool UAudioSpectrumWidget::FUserAudioSpectrumObserver::onLocalAudioSpectrum(cons
565565

566566
WidgetPtr->UpdateSpectrumData(data);
567567

568-
#if AGORA_CPP_VER_20_OR_LATER
568+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
569569
AsyncTask(ENamedThreads::GameThread, [=, this]()
570570
#else
571571
AsyncTask(ENamedThreads::GameThread, [=]()

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/ChannelMediaRelay/ChannelMediaRelayWidget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void UChannelMediaRelayWidget::FUserRtcEventHandlerEx::onJoinChannelSuccess(cons
291291
if (!IsWidgetValid())
292292
return;
293293

294-
#if AGORA_CPP_VER_20_OR_LATER
294+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
295295
AsyncTask(ENamedThreads::GameThread, [=, this]()
296296
#else
297297
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -313,7 +313,7 @@ void UChannelMediaRelayWidget::FUserRtcEventHandlerEx::onLeaveChannel(const agor
313313
if (!IsWidgetValid())
314314
return;
315315

316-
#if AGORA_CPP_VER_20_OR_LATER
316+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
317317
AsyncTask(ENamedThreads::GameThread, [=, this]()
318318
#else
319319
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -335,7 +335,7 @@ void UChannelMediaRelayWidget::FUserRtcEventHandlerEx::onUserJoined(const agora:
335335
if (!IsWidgetValid())
336336
return;
337337

338-
#if AGORA_CPP_VER_20_OR_LATER
338+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
339339
AsyncTask(ENamedThreads::GameThread, [=, this]()
340340
#else
341341
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -357,7 +357,7 @@ void UChannelMediaRelayWidget::FUserRtcEventHandlerEx::onUserOffline(const agora
357357
if (!IsWidgetValid())
358358
return;
359359

360-
#if AGORA_CPP_VER_20_OR_LATER
360+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
361361
AsyncTask(ENamedThreads::GameThread, [=, this]()
362362
#else
363363
AsyncTask(ENamedThreads::GameThread, [=]()

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/ContentInspect/ContentInspectWidget.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void UContentInspectWidget::FUserRtcEventHandlerEx::onJoinChannelSuccess(const a
229229
if (!IsWidgetValid())
230230
return;
231231

232-
#if AGORA_CPP_VER_20_OR_LATER
232+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
233233
AsyncTask(ENamedThreads::GameThread, [=, this]()
234234
#else
235235
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -251,7 +251,7 @@ void UContentInspectWidget::FUserRtcEventHandlerEx::onLeaveChannel(const agora::
251251
if (!IsWidgetValid())
252252
return;
253253

254-
#if AGORA_CPP_VER_20_OR_LATER
254+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
255255
AsyncTask(ENamedThreads::GameThread, [=, this]()
256256
#else
257257
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -273,7 +273,7 @@ void UContentInspectWidget::FUserRtcEventHandlerEx::onUserJoined(const agora::rt
273273
if (!IsWidgetValid())
274274
return;
275275

276-
#if AGORA_CPP_VER_20_OR_LATER
276+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
277277
AsyncTask(ENamedThreads::GameThread, [=, this]()
278278
#else
279279
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -295,7 +295,7 @@ void UContentInspectWidget::FUserRtcEventHandlerEx::onUserOffline(const agora::r
295295
if (!IsWidgetValid())
296296
return;
297297

298-
#if AGORA_CPP_VER_20_OR_LATER
298+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
299299
AsyncTask(ENamedThreads::GameThread, [=, this]()
300300
#else
301301
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -317,7 +317,7 @@ void UContentInspectWidget::FUserRtcEventHandlerEx::onContentInspectResult(agora
317317
if (!IsWidgetValid())
318318
return;
319319

320-
#if AGORA_CPP_VER_20_OR_LATER
320+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
321321
AsyncTask(ENamedThreads::GameThread, [=, this]()
322322
#else
323323
AsyncTask(ENamedThreads::GameThread, [=]()

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/CustomCaptureAudio/CustomCaptureAudioWidget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void UCustomCaptureAudioWidget::FUserRtcEventHandler::onJoinChannelSuccess(const
142142
if (!IsWidgetValid())
143143
return;
144144

145-
#if AGORA_CPP_VER_20_OR_LATER
145+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
146146
AsyncTask(ENamedThreads::GameThread, [=, this]()
147147
#else
148148
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -162,7 +162,7 @@ void UCustomCaptureAudioWidget::FUserRtcEventHandler::onLeaveChannel(const agora
162162
{
163163
if (!IsWidgetValid())
164164
return;
165-
#if AGORA_CPP_VER_20_OR_LATER
165+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
166166
AsyncTask(ENamedThreads::GameThread, [=, this]()
167167
#else
168168
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -184,7 +184,7 @@ void UCustomCaptureAudioWidget::FUserRtcEventHandler::onUserJoined(agora::rtc::u
184184
{
185185
if (!IsWidgetValid())
186186
return;
187-
#if AGORA_CPP_VER_20_OR_LATER
187+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
188188
AsyncTask(ENamedThreads::GameThread, [=, this]()
189189
#else
190190
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -206,7 +206,7 @@ void UCustomCaptureAudioWidget::FUserRtcEventHandler::onUserOffline(agora::rtc::
206206
if (!IsWidgetValid())
207207
return;
208208

209-
#if AGORA_CPP_VER_20_OR_LATER
209+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
210210
AsyncTask(ENamedThreads::GameThread, [=, this]()
211211
#else
212212
AsyncTask(ENamedThreads::GameThread, [=]()

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/CustomCaptureVideo/CustomCaptureVideoScene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "Rendering/SlateRenderer.h"
99
#include "Widgets/SWindow.h"
1010
#include "RHIDefinitions.h"
11-
11+
#include <chrono>
1212

1313
void UCustomCaptureVideoScene::InitAgoraWidget(FString APP_ID, FString TOKEN, FString CHANNEL_NAME)
1414
{

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/CustomRenderAudio/CustomRenderAudioWidget.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void UCustomRenderAudioWidget::FUserRtcEventHandler::onJoinChannelSuccess(const
176176
if (!IsWidgetValid())
177177
return;
178178

179-
#if AGORA_CPP_VER_20_OR_LATER
179+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
180180
AsyncTask(ENamedThreads::GameThread, [=, this]()
181181
#else
182182
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -196,7 +196,7 @@ void UCustomRenderAudioWidget::FUserRtcEventHandler::onLeaveChannel(const agora:
196196
{
197197
if (!IsWidgetValid())
198198
return;
199-
#if AGORA_CPP_VER_20_OR_LATER
199+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
200200
AsyncTask(ENamedThreads::GameThread, [=, this]()
201201
#else
202202
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -218,7 +218,7 @@ void UCustomRenderAudioWidget::FUserRtcEventHandler::onUserJoined(agora::rtc::ui
218218
{
219219
if (!IsWidgetValid())
220220
return;
221-
#if AGORA_CPP_VER_20_OR_LATER
221+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
222222
AsyncTask(ENamedThreads::GameThread, [=, this]()
223223
#else
224224
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -240,7 +240,7 @@ void UCustomRenderAudioWidget::FUserRtcEventHandler::onUserOffline(agora::rtc::u
240240
if (!IsWidgetValid())
241241
return;
242242

243-
#if AGORA_CPP_VER_20_OR_LATER
243+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
244244
AsyncTask(ENamedThreads::GameThread, [=, this]()
245245
#else
246246
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -263,7 +263,7 @@ void UCustomRenderAudioWidget::FUserRtcEventHandler::onAudioVolumeIndication(con
263263
if (!IsWidgetValid())
264264
return;
265265

266-
#if AGORA_CPP_VER_20_OR_LATER
266+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
267267
AsyncTask(ENamedThreads::GameThread, [=, this]()
268268
#else
269269
AsyncTask(ENamedThreads::GameThread, [=]()

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/DualCamera/DualCameraWidget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ void UDualCameraWidget::FUserRtcEventHandlerEx::onJoinChannelSuccess(const agora
373373
if (!IsWidgetValid())
374374
return;
375375

376-
#if AGORA_CPP_VER_20_OR_LATER
376+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
377377
AsyncTask(ENamedThreads::GameThread, [=, this]()
378378
#else
379379
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -398,7 +398,7 @@ void UDualCameraWidget::FUserRtcEventHandlerEx::onLeaveChannel(const agora::rtc:
398398
if (!IsWidgetValid())
399399
return;
400400

401-
#if AGORA_CPP_VER_20_OR_LATER
401+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
402402
AsyncTask(ENamedThreads::GameThread, [=, this]()
403403
#else
404404
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -423,7 +423,7 @@ void UDualCameraWidget::FUserRtcEventHandlerEx::onUserJoined(const agora::rtc::R
423423
if (!IsWidgetValid())
424424
return;
425425

426-
#if AGORA_CPP_VER_20_OR_LATER
426+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
427427
AsyncTask(ENamedThreads::GameThread, [=, this]()
428428
#else
429429
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -446,7 +446,7 @@ void UDualCameraWidget::FUserRtcEventHandlerEx::onUserOffline(const agora::rtc::
446446
if (!IsWidgetValid())
447447
return;
448448

449-
#if AGORA_CPP_VER_20_OR_LATER
449+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
450450
AsyncTask(ENamedThreads::GameThread, [=, this]()
451451
#else
452452
AsyncTask(ENamedThreads::GameThread, [=]()

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/JoinChannelVideoToken/JoinChannelWithTokenWidget.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void UJoinChannelWithTokenWidget::FUserRtcEventHandlerEx::onJoinChannelSuccess(c
287287
if (!IsWidgetValid())
288288
return;
289289

290-
#if AGORA_CPP_VER_20_OR_LATER
290+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
291291
AsyncTask(ENamedThreads::GameThread, [=, this]()
292292
#else
293293
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -309,7 +309,7 @@ void UJoinChannelWithTokenWidget::FUserRtcEventHandlerEx::onLeaveChannel(const a
309309
if (!IsWidgetValid())
310310
return;
311311

312-
#if AGORA_CPP_VER_20_OR_LATER
312+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
313313
AsyncTask(ENamedThreads::GameThread, [=, this]()
314314
#else
315315
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -331,7 +331,7 @@ void UJoinChannelWithTokenWidget::FUserRtcEventHandlerEx::onUserJoined(const ago
331331
if (!IsWidgetValid())
332332
return;
333333

334-
#if AGORA_CPP_VER_20_OR_LATER
334+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
335335
AsyncTask(ENamedThreads::GameThread, [=, this]()
336336
#else
337337
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -353,7 +353,7 @@ void UJoinChannelWithTokenWidget::FUserRtcEventHandlerEx::onUserOffline(const ag
353353
if (!IsWidgetValid())
354354
return;
355355

356-
#if AGORA_CPP_VER_20_OR_LATER
356+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
357357
AsyncTask(ENamedThreads::GameThread, [=, this]()
358358
#else
359359
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -376,7 +376,7 @@ void UJoinChannelWithTokenWidget::FUserRtcEventHandlerEx::onTokenPrivilegeWillEx
376376
return;
377377

378378
FString TokenStr = UTF8_TO_TCHAR(token);
379-
#if AGORA_CPP_VER_20_OR_LATER
379+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
380380
AsyncTask(ENamedThreads::GameThread, [=, this]()
381381
#else
382382
AsyncTask(ENamedThreads::GameThread, [=]()

Agora-Unreal-SDK-CPP-Example/Source/AgoraExample/Examples/Advanced/JoinChannelWithUserAccount/JoinChannelWithUserAccountWidget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void UJoinChannelWithUserAccountWidget::FUserRtcEventHandlerEx::onJoinChannelSuc
212212
if (!IsWidgetValid())
213213
return;
214214

215-
#if AGORA_CPP_VER_20_OR_LATER
215+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
216216
AsyncTask(ENamedThreads::GameThread, [=, this]()
217217
#else
218218
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -234,7 +234,7 @@ void UJoinChannelWithUserAccountWidget::FUserRtcEventHandlerEx::onLeaveChannel(c
234234
if (!IsWidgetValid())
235235
return;
236236

237-
#if AGORA_CPP_VER_20_OR_LATER
237+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
238238
AsyncTask(ENamedThreads::GameThread, [=, this]()
239239
#else
240240
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -256,7 +256,7 @@ void UJoinChannelWithUserAccountWidget::FUserRtcEventHandlerEx::onUserJoined(con
256256
if (!IsWidgetValid())
257257
return;
258258

259-
#if AGORA_CPP_VER_20_OR_LATER
259+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
260260
AsyncTask(ENamedThreads::GameThread, [=, this]()
261261
#else
262262
AsyncTask(ENamedThreads::GameThread, [=]()
@@ -278,7 +278,7 @@ void UJoinChannelWithUserAccountWidget::FUserRtcEventHandlerEx::onUserOffline(co
278278
if (!IsWidgetValid())
279279
return;
280280

281-
#if AGORA_CPP_VER_20_OR_LATER
281+
#if ((__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
282282
AsyncTask(ENamedThreads::GameThread, [=, this]()
283283
#else
284284
AsyncTask(ENamedThreads::GameThread, [=]()

0 commit comments

Comments
 (0)