diff options
-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 |