aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--router/al.c2
-rw-r--r--router/router.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/router/al.c b/router/al.c
index 3349ad13..8dd888d9 100644
--- a/router/al.c
+++ b/router/al.c
@@ -7,7 +7,7 @@
#include "router.h"
-ATOMIC(DriverIface*) CurrentCtxDriver = ATOMIC_INIT_STATIC(NULL);
+atomic_DriverIfacePtr CurrentCtxDriver = ATOMIC_INIT_STATIC(NULL);
#define DECL_THUNK1(R,n,T1) AL_API R AL_APIENTRY n(T1 a) \
{ \
diff --git a/router/router.h b/router/router.h
index ee885d85..32a91dcb 100644
--- a/router/router.h
+++ b/router/router.h
@@ -137,7 +137,8 @@ extern DriverIface *DriverList;
extern int DriverListSize;
extern altss_t ThreadCtxDriver;
-extern ATOMIC(DriverIface*) CurrentCtxDriver;
+typedef ATOMIC(DriverIface*) atomic_DriverIfacePtr;
+extern atomic_DriverIfacePtr CurrentCtxDriver;
typedef struct PtrIntMap {