mirror of https://github.com/mgba-emu/mgba.git
Util: Fix SOCKET_FAILED macro
This commit is contained in:
parent
d5ce3d5ee1
commit
69fb4e4c7b
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue