Skip to content

Commit 9cda72d

Browse files
committed
call atomic_init for C++ versions below 20
1 parent 0c62f4f commit 9cda72d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tbprobe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,10 +776,10 @@ static void init_tb(char *str)
776776
TB_MaxCardinalityDTM = be->num;
777777
}
778778

779-
#if !defined(__cplusplus)
779+
#if !defined(__cplusplus) || (__cplusplus < 202002L)
780780
for (int type = 0; type < 3; type++)
781781
atomic_init(&be->ready[type], false);
782-
#endif
782+
#endif
783783

784784
if (!be->hasPawns) {
785785
int j = 0;

0 commit comments

Comments
 (0)