From a2ca31f0f6e30a30bf6f6e58ab423b370fbc9bb3 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 8 Feb 2008 15:21:41 +0000 Subject: More ticket #472: Fixed problem when building on Mingw. Now PJ_FD_SETSIZE_SETABLE is only enabled when winsock.h is present git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1788 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/ioqueue_select.c | 8 ++++++++ pjlib/src/pj/sock_select.c | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'pjlib/src') diff --git a/pjlib/src/pj/ioqueue_select.c b/pjlib/src/pj/ioqueue_select.c index 4bf11471..7738f668 100644 --- a/pjlib/src/pj/ioqueue_select.c +++ b/pjlib/src/pj/ioqueue_select.c @@ -38,6 +38,14 @@ #include #include +/* Now that we have access to OS'es , lets check again that + * PJ_IOQUEUE_MAX_HANDLES is not greater than FD_SETSIZE + */ +#if PJ_IOQUEUE_MAX_HANDLES > FD_SETSIZE +# error "PJ_IOQUEUE_MAX_HANDLES cannot be greater than FD_SETSIZE" +#endif + + /* * Include declaration from common abstraction. */ diff --git a/pjlib/src/pj/sock_select.c b/pjlib/src/pj/sock_select.c index b3743b93..566050ef 100644 --- a/pjlib/src/pj/sock_select.c +++ b/pjlib/src/pj/sock_select.c @@ -35,13 +35,6 @@ # pragma warning(disable: 4389) // Signed/unsigned mismatch in FD_* #endif -/* Now that we have access to OS'es , lets check again that - * PJ_IOQUEUE_MAX_HANDLES is not greater than FD_SETSIZE - */ -#if PJ_IOQUEUE_MAX_HANDLES > FD_SETSIZE -# error "PJ_IOQUEUE_MAX_HANDLES cannot be greater than FD_SETSIZE" -#endif - #define PART_FDSET(ps) ((fd_set*)&ps->data[1]) #define PART_FDSET_OR_NULL(ps) (ps ? PART_FDSET(ps) : NULL) #define PART_COUNT(ps) (ps->data[0]) -- cgit v1.2.3