Add brackets around function macro arguments

This commit is contained in:
Andres Amaya Garcia 2017-07-06 16:57:34 +01:00 committed by Simon Butcher
parent a4d1857003
commit 86f76ea25c

View File

@ -57,8 +57,10 @@
#include <unistd.h>
#else
#include <io.h>
#define read(fd, buf, len) _read( fd, (void *)buf, (unsigned int)len )
#define write(fd, buf, len) _write( fd, (const void *)buf, (unsigned int)len )
#define read(fd, buf, len) \
_read( fd, (void *)( buf ), (unsigned int)( len ) )
#define write(fd, buf, len) \
_write( fd, (const void *)( buf ), (unsigned int)( len ) )
#endif
#if defined(_WIN32) || defined(_WIN32_WCE)