diff options
author | Chris Robinson <[email protected]> | 2017-10-07 14:58:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-10-07 14:58:35 -0700 |
commit | b3f7df6f5b0ce84937989c4b8fbbbce88bc9cebb (patch) | |
tree | 5b8c534babeabd0c08bb02a4176f40c46f46f723 /router/router.h | |
parent | d57eca57a93a78f9d04de0bc562319dcff6ccbc7 (diff) |
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.
Diffstat (limited to 'router/router.h')
-rw-r--r-- | router/router.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |