diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-05-12 15:03:23 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-05-12 15:03:23 +0000 |
commit | fd5aade84080ce74df1622958ea2c56c3e827703 (patch) | |
tree | ba9d237790fd514955f4e716afc162b7d7091d31 /pjlib/include/pj/compat | |
parent | 3727cae28c3f725ff6f909955718523737a597fa (diff) |
Symbian fixes to compile on GCCE (nested callbacks etc)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1269 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat')
-rw-r--r-- | pjlib/include/pj/compat/cc_armcc.h | 6 | ||||
-rw-r--r-- | pjlib/include/pj/compat/os_symbian.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/pjlib/include/pj/compat/cc_armcc.h b/pjlib/include/pj/compat/cc_armcc.h index 504ca889..52fe74c0 100644 --- a/pjlib/include/pj/compat/cc_armcc.h +++ b/pjlib/include/pj/compat/cc_armcc.h @@ -33,8 +33,12 @@ #define PJ_CC_VER_2 __ARMCC_MINOR__ #define PJ_CC_VER_3 __ARMCC_PATCHLEVEL__ +#ifdef __cplusplus +# define PJ_INLINE_SPECIFIER inline +#else +# define PJ_INLINE_SPECIFIER static __inline +#endif -#define PJ_INLINE_SPECIFIER static // why is not inline accepted? #define PJ_THREAD_FUNC #define PJ_NORETURN #define PJ_ATTR_NORETURN __attribute__ ((noreturn)) diff --git a/pjlib/include/pj/compat/os_symbian.h b/pjlib/include/pj/compat/os_symbian.h index b1b1cd1a..f6787b06 100644 --- a/pjlib/include/pj/compat/os_symbian.h +++ b/pjlib/include/pj/compat/os_symbian.h @@ -144,7 +144,9 @@ #define PJ_HAS_SOCKLEN_T 1 typedef unsigned int socklen_t; +#ifndef __GCCE__ #include <e32def.h> +#endif /* #if defined(PJ_EXPORTING) |