From 736ab4c9645fe380c66bbc576986d4f8c045d1c4 Mon Sep 17 00:00:00 2001 From: Cthulhu-throwaway <96153783+Cthulhu-throwaway@users.noreply.github.com> Date: Fri, 24 Dec 2021 10:58:18 -0300 Subject: [PATCH] MSVC 2005 build fix (#13408) --- libretro-common/net/net_natt.c | 4 ++++ network/netplay/netplay_frontend.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/libretro-common/net/net_natt.c b/libretro-common/net/net_natt.c index bda863f7ba..57f1293b3c 100644 --- a/libretro-common/net/net_natt.c +++ b/libretro-common/net/net_natt.c @@ -20,6 +20,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#if !defined(HAVE_SOCKET_LEGACY) && defined(_WIN32) +#pragma comment(lib, "Iphlpapi") +#endif + #include #include #include diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index 57311d158f..2cc24d0a8b 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -20,6 +20,10 @@ #pragma comment(lib, "ws2_32") #endif +#ifdef _WIN32 +#pragma comment(lib, "Iphlpapi") +#endif + #include #include #include