Util: Fix SOCKET_FAILED macro

This commit is contained in:
Jeffrey Pfau 2015-01-16 00:11:50 -08:00
parent d5ce3d5ee1
commit 69fb4e4c7b
2 changed files with 3 additions and 2 deletions

View File

@ -61,6 +61,7 @@ Bugfixes:
- 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

View File

@ -16,7 +16,7 @@
#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 @@ typedef SOCKET Socket;
#include <sys/socket.h>
#define INVALID_SOCKET (-1)
#define SOCKET_FAILED(s) (s) < 0
#define SOCKET_FAILED(s) ((s) < 0)
typedef int Socket;
#endif