File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 31
31
#define WARN_UNUSED __attribute__((warn_unused_result))
32
32
#define unlikely (expr ) __builtin_expect(!!(expr), 0)
33
33
#define likely (expr ) __builtin_expect(!!(expr), 1)
34
+ #include <stdatomic.h>
34
35
#else
35
36
/* On windows we don't do any perf related stuff */
36
37
#define WARN_UNUSED
37
38
#define restrict
39
+ /* Although MSVS supports C11, it doesn't seem to include a working version of
40
+ * stdatomic.h, so we can't use it portably. For this experiment we'll just
41
+ * leave it out on Windows, as nobody is doing large-scale tsinfer'ing on
42
+ * Windows. */
43
+ #define _Atomic
38
44
#define unlikely (expr ) (expr)
39
45
#define likely (expr ) (expr)
40
46
#endif
@@ -48,7 +54,6 @@ const char *tsi_strerror(int err);
48
54
*/
49
55
50
56
#include "tskit.h"
51
- #include <stdatomic.h>
52
57
53
58
typedef struct {
54
59
size_t chunk_size ; /* number of bytes per chunk */
You can’t perform that action at this time.
0 commit comments