diff options
author | Benny Prijono <bennylp@teluu.com> | 2005-11-21 16:57:02 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2005-11-21 16:57:02 +0000 |
commit | 5d8ed312c380f76e442ca170f0f791273c914bfa (patch) | |
tree | 552b3ccb4a8bb0b9144fac237822a147c6d48a24 /pjlib/src/pj/except.c | |
parent | 54349030a3b401a96f1dc24dd351fe19110ddbb9 (diff) |
Changed syntax to support Windows SEH
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@68 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/except.c')
-rw-r--r-- | pjlib/src/pj/except.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pjlib/src/pj/except.c b/pjlib/src/pj/except.c index ceaaad16..0a9f32ab 100644 --- a/pjlib/src/pj/except.c +++ b/pjlib/src/pj/except.c @@ -35,6 +35,7 @@ static long thread_local_id = -1; #endif /* PJ_HAS_EXCEPTION_NAMES */ +#if !defined(PJ_EXCEPTION_USE_WIN32_SEH) || PJ_EXCEPTION_USE_WIN32_SEH==0 PJ_DEF(void) pj_throw_exception_(int exception_id) { struct pj_exception_state_t *handler; @@ -69,6 +70,7 @@ PJ_DEF(void) pj_pop_exception_handler_(void) pj_assert(handler != NULL); pj_thread_local_set(thread_local_id, handler->prev); } +#endif #if defined(PJ_HAS_EXCEPTION_NAMES) && PJ_HAS_EXCEPTION_NAMES != 0 PJ_DEF(pj_status_t) pj_exception_id_alloc( const char *name, |