diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-01-18 17:33:31 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-01-18 17:33:31 +0000 |
commit | 8c97c54eb974fcea900db84feac108d37a282933 (patch) | |
tree | 87e7f14e601b299635f0dc4db3f5727056d7de42 /pjlib/include/pj/compat | |
parent | 8cd02b95fcd7d96895ba25a6897284c5cb4497f6 (diff) |
Ticket #66: fix broken compilation with gcc 2.9x.x or older
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@884 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat')
-rw-r--r-- | pjlib/include/pj/compat/cc_gcc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pjlib/include/pj/compat/cc_gcc.h b/pjlib/include/pj/compat/cc_gcc.h index 1cbc3534..6e33a863 100644 --- a/pjlib/include/pj/compat/cc_gcc.h +++ b/pjlib/include/pj/compat/cc_gcc.h @@ -31,7 +31,14 @@ #define PJ_CC_NAME "gcc" #define PJ_CC_VER_1 __GNUC__ #define PJ_CC_VER_2 __GNUC_MINOR__ -#define PJ_CC_VER_3 __GNUC_PATCHLEVEL__ + +/* __GNUC_PATCHLEVEL__ doesn't exist in gcc-2.9x.x */ +#ifdef __GNUC_PATCHLEVEL__ +# define PJ_CC_VER_3 __GNUC_PATCHLEVEL__ +#else +# define PJ_CC_VER_3 0 +#endif + #define PJ_THREAD_FUNC |