mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 06:55:46 +01:00
Fix typo and bracketing in macro args
This commit is contained in:
parent
5273182a20
commit
b61b9ccf80
@ -52,8 +52,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif /* _MSC_VER */
|
#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 )
|
||||||
#define close(fd) closesocket(fd)
|
#define close(fd) closesocket(fd)
|
||||||
|
|
||||||
static int wsa_init_done = 0;
|
static int wsa_init_done = 0;
|
||||||
@ -74,7 +74,7 @@ static int wsa_init_done = 0;
|
|||||||
#endif /* ( _WIN32 || _WIN32_WCE ) && !EFIX64 && !EFI32 */
|
#endif /* ( _WIN32 || _WIN32_WCE ) && !EFIX64 && !EFI32 */
|
||||||
|
|
||||||
/* Some MS functions want int and MSVC warns if we pass size_t,
|
/* Some MS functions want int and MSVC warns if we pass size_t,
|
||||||
* but the standard fucntions use socklen_t, so cast only for MSVC */
|
* but the standard functions use socklen_t, so cast only for MSVC */
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define MSVC_INT_CAST (int)
|
#define MSVC_INT_CAST (int)
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user