Skip to content

Commit

Permalink
fix atomic types
Browse files Browse the repository at this point in the history
  • Loading branch information
wismill committed Nov 14, 2024
1 parent a4d2def commit 22dd336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/atom.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ atom_intern(struct atom_table *table, const char *string, size_t len, bool add)

struct atom_table {
size_t size;
char **strings;
_Atomic(char *) *strings;
};

struct atom_table *
Expand Down
4 changes: 3 additions & 1 deletion src/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#ifndef CONTEXT_H
#define CONTEXT_H

#include <stdatomic.h>

#include "xkbcommon/xkbcommon.h"
#include "atom.h"
#include "messages-codes.h"
Expand All @@ -35,7 +37,7 @@
#endif

struct xkb_context {
int refcnt;
atomic_int refcnt;

ATTR_PRINTF(3, 0) void (*log_fn)(struct xkb_context *ctx,
enum xkb_log_level level,
Expand Down

0 comments on commit 22dd336

Please sign in to comment.