diff options
author | Chris Robinson <[email protected]> | 2023-09-11 19:34:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-11 19:34:55 -0700 |
commit | 6722ad196145ef7334d7478bdd375308801e7096 (patch) | |
tree | 60ca9a830e7601e8eb4289696b565d852cbb9760 /router/router.cpp | |
parent | 43fac7e95568a2b7205db365a49e3938b05e913b (diff) |
Make some global and static member variables inline
This also seems to work around the problematic MinGW code generation, so the
indirection to access it can be removed.
Diffstat (limited to 'router/router.cpp')
-rw-r--r-- | router/router.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/router/router.cpp b/router/router.cpp index b2274c0b..e2ba91d1 100644 --- a/router/router.cpp +++ b/router/router.cpp @@ -17,18 +17,9 @@ #include "version.h" -std::vector<DriverIfacePtr> DriverList; - -thread_local DriverIface *ThreadCtxDriver; - enum LogLevel LogLevel = LogLevel_Error; FILE *LogFile; -#ifdef __MINGW32__ -DriverIface *GetThreadDriver() noexcept { return ThreadCtxDriver; } -void SetThreadDriver(DriverIface *driver) noexcept { ThreadCtxDriver = driver; } -#endif - static void LoadDriverList(void); |