move windows compat errno constants to after <errno.h> is included

This commit is contained in:
Love Hornquist Astrand
2012-06-08 17:56:48 +02:00
parent 5775cb529c
commit 5bb60d9dc4

View File

@@ -99,26 +99,6 @@ typedef int rk_socket_t;
#endif /* WinSock */ #endif /* WinSock */
/* Microsoft VC 2010 POSIX definitions */
#ifndef EAFNOSUPPORT
#define EAFNOSUPPORT 102
#endif
#ifndef ENOTSOCK
#define ENOTSOCK 128
#endif
#ifndef ENOTSUP
#define ENOTSUP 129
#endif
#ifndef EOVERFLOW
#define EOVERFLOW 132
#endif
#ifndef ETIMEDOUT
#define ETIMEDOUT 138
#endif
#ifndef EWOULDBLOCK
#define EWOULDBLOCK 140
#endif
#ifndef IN_LOOPBACKNET #ifndef IN_LOOPBACKNET
#define IN_LOOPBACKNET 127 #define IN_LOOPBACKNET 127
#endif #endif
@@ -1161,6 +1141,27 @@ rk_qsort(void *, size_t, size_t, int (*)(const void *, const void *));
int ROKEN_LIB_FUNCTION rk_socket(int, int, int); int ROKEN_LIB_FUNCTION rk_socket(int, int, int);
#endif #endif
/* Microsoft VC 2010 POSIX definitions */
#ifndef EAFNOSUPPORT
#define EAFNOSUPPORT 102
#endif
#ifndef ENOTSOCK
#define ENOTSOCK 128
#endif
#ifndef ENOTSUP
#define ENOTSUP 129
#endif
#ifndef EOVERFLOW
#define EOVERFLOW 132
#endif
#ifndef ETIMEDOUT
#define ETIMEDOUT 138
#endif
#ifndef EWOULDBLOCK
#define EWOULDBLOCK 140
#endif
#ifdef SOCKET_WRAPPER_REPLACE #ifdef SOCKET_WRAPPER_REPLACE
#include <socket_wrapper.h> #include <socket_wrapper.h>
#endif #endif