Changeset 1788 for pjproject/trunk
- Timestamp:
- Feb 8, 2008 3:21:41 PM (17 years ago)
- Location:
- pjproject/trunk/pjlib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/config.h
r1783 r1788 488 488 */ 489 489 #ifndef PJ_IOQUEUE_MAX_HANDLES 490 # if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0 491 # define PJ_IOQUEUE_MAX_HANDLES (64) 492 # else 493 # define PJ_IOQUEUE_MAX_HANDLES (256) 494 # endif 490 # define PJ_IOQUEUE_MAX_HANDLES (64) 495 491 #endif 496 492 … … 533 529 /** 534 530 * Determine if FD_SETSIZE is changeable/set-able. If so, then we will 535 * set it to PJ_IOQUEUE_MAX_HANDLES. 536 * /537 /* This is awful, as we should actually check for __GLIBC__ rather than 538 * __GNUC__. But alas! Libc headers are not included yet at this stage. 539 */ 540 # ifdef __GNUC__541 # define PJ_FD_SETSIZE_SETABLE 0542 # else543 # define PJ_FD_SETSIZE_SETABLE 1531 * set it to PJ_IOQUEUE_MAX_HANDLES. Currently we detect this by checking 532 * for Winsock. 533 */ 534 #ifndef PJ_FD_SETSIZE_SETABLE 535 # if defined(PJ_HAS_WINSOCK_H) && PJ_HAS_WINSOCK_H!=0 536 # define PJ_FD_SETSIZE_SETABLE 1 537 # else 538 # define PJ_FD_SETSIZE_SETABLE 0 539 # endif 544 540 #endif 545 541 546 542 /** 547 543 * Overrides FD_SETSIZE so it is consistent throughout the library. 548 * We only do this if we detected that FD_SETSIZE is changeable. 549 * 550 * Default: #PJ_IOQUEUE_MAX_HANDLES544 * We only do this if we detected that FD_SETSIZE is changeable. If 545 * FD_SETSIZE is not set-able, then PJ_IOQUEUE_MAX_HANDLES must be 546 * set to value lower than FD_SETSIZE. 551 547 */ 552 548 #if PJ_FD_SETSIZE_SETABLE -
pjproject/trunk/pjlib/src/pj/ioqueue_select.c
r1531 r1788 38 38 #include <pj/sock_select.h> 39 39 #include <pj/errno.h> 40 41 /* Now that we have access to OS'es <sys/select>, lets check again that 42 * PJ_IOQUEUE_MAX_HANDLES is not greater than FD_SETSIZE 43 */ 44 #if PJ_IOQUEUE_MAX_HANDLES > FD_SETSIZE 45 # error "PJ_IOQUEUE_MAX_HANDLES cannot be greater than FD_SETSIZE" 46 #endif 47 40 48 41 49 /* -
pjproject/trunk/pjlib/src/pj/sock_select.c
r1783 r1788 34 34 # pragma warning(disable: 4018) // Signed/unsigned mismatch in FD_* 35 35 # pragma warning(disable: 4389) // Signed/unsigned mismatch in FD_* 36 #endif37 38 /* Now that we have access to OS'es <sys/select>, lets check again that39 * PJ_IOQUEUE_MAX_HANDLES is not greater than FD_SETSIZE40 */41 #if PJ_IOQUEUE_MAX_HANDLES > FD_SETSIZE42 # error "PJ_IOQUEUE_MAX_HANDLES cannot be greater than FD_SETSIZE"43 36 #endif 44 37
Note: See TracChangeset
for help on using the changeset viewer.