all repos — mgba @ 69fb4e4c7bea99d1f0390bb28adf2ab071a7a508

mGBA Game Boy Advance Emulator

Util: Fix SOCKET_FAILED macro
Jeffrey Pfau jeffrey@endrift.com
Fri, 16 Jan 2015 00:11:50 -0800
commit

69fb4e4c7bea99d1f0390bb28adf2ab071a7a508

parent

d5ce3d5ee142e93eda9d645f1a96cd24406290ff

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.hsrc/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