From ac55d0fc84eba5ac147b3cae078b328b5232eb9c Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Wed, 17 Apr 2024 10:51:21 +0200 Subject: [PATCH] if defined ENABLE_CXX11 --- srtcore/channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srtcore/channel.cpp b/srtcore/channel.cpp index 777856d893..0a4e1e3183 100644 --- a/srtcore/channel.cpp +++ b/srtcore/channel.cpp @@ -798,7 +798,7 @@ int srt::CChannel::sendto(const sockaddr_any& addr, CPacket& packet, const socka private: WSAEVENT e; }; -#ifndef __MINGW32__ +#if !defined(__MINGW32__) && defined(ENABLE_CXX11) thread_local WSAEventRef lEvent; #else WSAEventRef lEvent;