From 5822e52c6b0f86f9e4de946f9fb1374c6fad95f1 Mon Sep 17 00:00:00 2001 From: Domagoj Pensa Date: Wed, 5 Feb 2020 13:46:15 +0100 Subject: [PATCH] Fix linking issues on MinGW MinGW linking fails for several files if compiled without "-O2" due to a missing "static" declaration for inline functions tuntap_is_wintun() and tuntap_ring_empty(). Signed-off-by: Domagoj Pensa Acked-by: Lev Stipakov Message-Id: <20200205124615.15758-3-domagoj@pensa.hr> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19356.html Signed-off-by: Gert Doering --- src/openvpn/tun.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h index 97d28f45f..327d79279 100644 --- a/src/openvpn/tun.h +++ b/src/openvpn/tun.h @@ -224,13 +224,13 @@ tuntap_defined(const struct tuntap *tt) } #ifdef _WIN32 -inline bool +static inline bool tuntap_is_wintun(struct tuntap *tt) { return tt && tt->windows_driver == WINDOWS_DRIVER_WINTUN; } -inline bool +static inline bool tuntap_ring_empty(struct tuntap *tt) { return tuntap_is_wintun(tt) && (tt->wintun_send_ring->head == tt->wintun_send_ring->tail); -- 2.47.2