mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
some magic to make w32api happy when using a [arch]-linux compiler rather than mingw32
svn path=/trunk/; revision=15924
This commit is contained in:
parent
87ee9dfafb
commit
6dfaa9b3a5
2 changed files with 9 additions and 1 deletions
|
@ -19,6 +19,9 @@
|
||||||
#define _X86_
|
#define _X86_
|
||||||
#elif defined(_M_ALPHA) && !defined(_ALPHA_)
|
#elif defined(_M_ALPHA) && !defined(_ALPHA_)
|
||||||
#define _ALPHA_
|
#define _ALPHA_
|
||||||
|
|
||||||
|
#elif defined(_M_ARM) && !defined(ARM)
|
||||||
|
#define ARM
|
||||||
#elif defined(_M_PPC) && !defined(_PPC_)
|
#elif defined(_M_PPC) && !defined(_PPC_)
|
||||||
#define _PPC_
|
#define _PPC_
|
||||||
#elif defined(_M_MRX000) && !defined(_MIPS_)
|
#elif defined(_M_MRX000) && !defined(_MIPS_)
|
||||||
|
|
|
@ -96,8 +96,10 @@ if (__i == ((fd_set *)(set))->fd_count) {\
|
||||||
This may cause runtime problems with W32 sockets"
|
This may cause runtime problems with W32 sockets"
|
||||||
#endif /* ndef _SYS_TYPES_FD_SET */
|
#endif /* ndef _SYS_TYPES_FD_SET */
|
||||||
#if !(defined (__INSIDE_CYGWIN__) || (__INSIDE_MSYS__))
|
#if !(defined (__INSIDE_CYGWIN__) || (__INSIDE_MSYS__))
|
||||||
#ifndef _TIMEVAL_DEFINED /* also in sys/time.h */
|
#ifndef _TIMEVAL_DEFINED
|
||||||
|
/* also in sys/time.h */
|
||||||
#define _TIMEVAL_DEFINED
|
#define _TIMEVAL_DEFINED
|
||||||
|
#define _STRUCT_TIMEVAL
|
||||||
struct timeval {
|
struct timeval {
|
||||||
long tv_sec;
|
long tv_sec;
|
||||||
long tv_usec;
|
long tv_usec;
|
||||||
|
@ -562,7 +564,10 @@ u_long PASCAL htonl(u_long);
|
||||||
u_long PASCAL ntohl(u_long);
|
u_long PASCAL ntohl(u_long);
|
||||||
u_short PASCAL htons(u_short);
|
u_short PASCAL htons(u_short);
|
||||||
u_short PASCAL ntohs(u_short);
|
u_short PASCAL ntohs(u_short);
|
||||||
|
#ifndef _SYS_SELECT_H /* Work around for Linux Compilers */
|
||||||
|
#define _SYS_SELECT_H
|
||||||
int PASCAL select(int nfds,fd_set*,fd_set*,fd_set*,const struct timeval*);
|
int PASCAL select(int nfds,fd_set*,fd_set*,fd_set*,const struct timeval*);
|
||||||
|
#endif
|
||||||
#endif /* ! (__INSIDE_CYGWIN__ || __INSIDE_MSYS__) */
|
#endif /* ! (__INSIDE_CYGWIN__ || __INSIDE_MSYS__) */
|
||||||
|
|
||||||
int PASCAL gethostname(char*,int);
|
int PASCAL gethostname(char*,int);
|
||||||
|
|
Loading…
Reference in a new issue