File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ The MIT License (MIT)
22
33Copyright (c) 2013-2018 Ronald de Man
44Copyright (c) 2015 basil00
5- Copyright (c) 2016-2023 by Jon Dart
5+ Copyright (c) 2016-2024 by Jon Dart
66
77Permission is hereby granted, free of charge, to any person obtaining a copy
88of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 11/*
22Copyright (c) 2013-2018 Ronald de Man
33Copyright (c) 2015 basil00
4- Modifications Copyright (c) 2016-2023 by Jon Dart
4+ Modifications Copyright (c) 2016-2024 by Jon Dart
55
66Permission is hereby granted, free of charge, to any person obtaining a copy
77of this software and associated documentation files (the "Software"), to deal
@@ -447,7 +447,11 @@ struct BaseEntry {
447447 uint8_t * data [3 ];
448448 map_t mapping [3 ];
449449#ifdef __cplusplus
450+ #if __cplusplus >= 202002L
451+ atomic < bool > ready [3 ]({false, false, false});
452+ #else
450453 atomic < bool > ready [3 ];
454+ #endif
451455#else
452456 atomic_bool ready [3 ];
453457#endif
@@ -772,8 +776,10 @@ static void init_tb(char *str)
772776 TB_MaxCardinalityDTM = be -> num ;
773777 }
774778
779+ #if !defined(__cplusplus )
775780 for (int type = 0 ; type < 3 ; type ++ )
776781 atomic_init (& be -> ready [type ], false);
782+ #endif
777783
778784 if (!be -> hasPawns ) {
779785 int j = 0 ;
You can’t perform that action at this time.
0 commit comments