Changeset 1788 for pjproject/trunk/pjlib/include/pj/config.h
- Timestamp:
- Feb 8, 2008 3:21:41 PM (17 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.