From 9405cec6cad2b8c4d00b5485edc2f09ed0bcab85 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 20 Mar 2015 18:12:37 +0100 Subject: [PATCH] Use net_compat.h in net_http_test.c --- libretro-common/net/net_http_test.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libretro-common/net/net_http_test.c b/libretro-common/net/net_http_test.c index af2a30bc13..b32f1bfcf3 100644 --- a/libretro-common/net/net_http_test.c +++ b/libretro-common/net/net_http_test.c @@ -1,5 +1,6 @@ #include #include +#include #ifdef _WIN32 #include @@ -7,16 +8,12 @@ int main(void) { -#ifdef _WIN32 - WSADATA wsaData; -#endif char *data; http_t *http1, *http2, *http3; size_t len, pos = 0, tot = 0; -#ifdef _WIN32 - WSAStartup(MAKEWORD(2, 2), &wsaData); -#endif + if (!network_init()) + return -1; http1 = net_http_new("http://buildbot.libretro.com/nightly/win-x86/latest/mednafen_psx_libretro.dll.zip"); @@ -32,6 +29,8 @@ int main(void) net_http_delete(http1); net_http_delete(http3); + + network_deinit(); return 0; }