Use a typedef to declare extern atomic variables
Some systems use anonymous structs for atomic storage, and extern declarations need to have the same type as their non-extern definition.
This commit is contained in:
+1
-1
@@ -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) \
|
||||
{ \
|
||||
|
||||
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user