mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:05:36 +01:00
Properly put the pragma comment for the MSVC linker in defines
This commit is contained in:
parent
29e86eae29
commit
f0fc2a27b0
@ -40,11 +40,13 @@
|
|||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
#if defined(_WIN32_WCE)
|
#if defined(_WIN32_WCE)
|
||||||
#pragma comment( lib, "ws2.lib" )
|
#pragma comment( lib, "ws2.lib" )
|
||||||
#else
|
#else
|
||||||
#pragma comment( lib, "ws2_32.lib" )
|
#pragma comment( lib, "ws2_32.lib" )
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#define read(fd,buf,len) recv(fd,(char*)buf,(int) len,0)
|
#define read(fd,buf,len) recv(fd,(char*)buf,(int) len,0)
|
||||||
#define write(fd,buf,len) send(fd,(char*)buf,(int) len,0)
|
#define write(fd,buf,len) send(fd,(char*)buf,(int) len,0)
|
||||||
|
@ -42,11 +42,13 @@
|
|||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
#if defined(_WIN32_WCE)
|
#if defined(_WIN32_WCE)
|
||||||
#pragma comment( lib, "ws2.lib" )
|
#pragma comment( lib, "ws2.lib" )
|
||||||
#else
|
#else
|
||||||
#pragma comment( lib, "ws2_32.lib" )
|
#pragma comment( lib, "ws2_32.lib" )
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* _MSC_VER */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "polarssl/base64.h"
|
#include "polarssl/base64.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user