From 8c97c54eb974fcea900db84feac108d37a282933 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 18 Jan 2007 17:33:31 +0000 Subject: 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 --- pjlib/include/pj/compat/cc_gcc.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pjlib') 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 -- cgit v1.2.3