mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
Use static INLINE for isagain
This commit is contained in:
parent
525fc87325
commit
d427fbbbbd
@ -22,6 +22,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_inline.h>
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(_XBOX)
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
#ifndef _WIN32_WINNT
|
#ifndef _WIN32_WINNT
|
||||||
@ -34,7 +35,7 @@
|
|||||||
#ifndef MSG_NOSIGNAL
|
#ifndef MSG_NOSIGNAL
|
||||||
#define MSG_NOSIGNAL 0
|
#define MSG_NOSIGNAL 0
|
||||||
#endif
|
#endif
|
||||||
inline bool isagain(int bytes) { return (bytes==SOCKET_ERROR && WSAGetLastError()==WSAEWOULDBLOCK); }
|
static INLINE bool isagain(int bytes) { return (bytes==SOCKET_ERROR && WSAGetLastError()==WSAEWOULDBLOCK); }
|
||||||
#elif defined(_XBOX)
|
#elif defined(_XBOX)
|
||||||
#define NOD3D
|
#define NOD3D
|
||||||
#include <xtl.h>
|
#include <xtl.h>
|
||||||
@ -52,7 +53,7 @@ inline bool isagain(int bytes) { return (bytes==SOCKET_ERROR && WSAGetLastError(
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
inline bool isagain(int bytes) { return (bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK)); }
|
static INLINE bool isagain(int bytes) { return (bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK)); }
|
||||||
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||||
#include <cell/sysmodule.h>
|
#include <cell/sysmodule.h>
|
||||||
#include <netex/net.h>
|
#include <netex/net.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user