aboutsummaryrefslogtreecommitdiffstats
path: root/router/router.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'router/router.cpp')
-rw-r--r--router/router.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/router/router.cpp b/router/router.cpp
index 731db063..7eb0bddc 100644
--- a/router/router.cpp
+++ b/router/router.cpp
@@ -24,6 +24,11 @@ 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);