Util: Fix SOCKET_FAILED macro
Jeffrey Pfau jeffrey@endrift.com
Fri, 16 Jan 2015 00:11:50 -0800
2 files changed,
3 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -61,6 +61,7 @@ - GBA Memory: Fix alignment of open bus 8- and 16-bit loads
- GBA BIOS: Fix HuffUnComp boundary conditions - GBA Video: Fix mode 0 being able to read tiles above appropriate tile range - GBA Audio: Properly initialize audio FIFO channels + - Util: Fix SOCKET_FAILED macro Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it
M
src/util/socket.h
→
src/util/socket.h
@@ -16,7 +16,7 @@ #ifdef _WIN32
#include <winsock2.h> #include <ws2tcpip.h> -#define SOCKET_FAILED(s) (s) == INVALID_SOCKET +#define SOCKET_FAILED(s) ((s) == INVALID_SOCKET) typedef SOCKET Socket; #else #include <fcntl.h>@@ -25,7 +25,7 @@ #include <netinet/tcp.h>
#include <sys/socket.h> #define INVALID_SOCKET (-1) -#define SOCKET_FAILED(s) (s) < 0 +#define SOCKET_FAILED(s) ((s) < 0) typedef int Socket; #endif