summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/include/pj/config.h19
-rw-r--r--pjlib/src/pj/except.c2
2 files changed, 18 insertions, 3 deletions
diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h
index d09795a4..607bf261 100644
--- a/pjlib/include/pj/config.h
+++ b/pjlib/include/pj/config.h
@@ -102,6 +102,7 @@
# undef PJ_HAS_EVENT_OBJ
# undef PJ_ENABLE_EXTRA_CHECK
# undef PJ_EXCEPTION_USE_WIN32_SEH
+# undef PJ_HAS_ERROR_STRING
#endif
/**
@@ -245,10 +246,14 @@
* maximum number of socket handles passed to select() (i.e. FD_SETSIZE will
* be set to this value).
*
- * Default: 256
+ * Default: 256 (64 for WinCE)
*/
#ifndef PJ_IOQUEUE_MAX_HANDLES
-# define PJ_IOQUEUE_MAX_HANDLES (256)
+# if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0
+# define PJ_IOQUEUE_MAX_HANDLES (64)
+# else
+# define PJ_IOQUEUE_MAX_HANDLES (256)
+# endif
#endif
/**
@@ -344,6 +349,16 @@
# define PJ_TIMESTAMP_USE_RDTSC 0
#endif
+/**
+ * Include error message string in the library (pj_strerror()).
+ * This is very much desirable!
+ *
+ * Default: 1
+ */
+#ifndef PJ_HAS_ERROR_STRING
+# define PJ_HAS_ERROR_STRING 1
+#endif
+
/** @} */
diff --git a/pjlib/src/pj/except.c b/pjlib/src/pj/except.c
index 0a9f32ab..531573f7 100644
--- a/pjlib/src/pj/except.c
+++ b/pjlib/src/pj/except.c
@@ -133,7 +133,7 @@ PJ_DEF(pj_status_t) pj_exception_id_alloc( const char *name,
{
PJ_ASSERT_RETURN(last_exception_id < PJ_MAX_EXCEPTION_ID-1, PJ_ETOOMANY);
- *id = last_exception_id++
+ *id = last_exception_id++;
return PJ_SUCCESS;
}