Conditional compilation according to version of PJSIP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a suggestion for a new feature of PJSIP (PJLIB) headers. 
Sometimes it would be nice to know the version of PJSIP during compile-time.

Something like:
#if defined(PJ_VERSION) && (PJ_VERSION >= 0x010805)
/* Code for version 1.8.5 and later */
#else
/* Code for older versions */
#endif

Or:
#if defined(PJ_VERSION_MAJOR) && (PJ_VERSION_MAJOR >= 2)
/* ... */
#endif

PJSIP has an excellent backwards compatibility for simple applications, 
but to be able to support more versions of PJSIP library in your 
application, this would be very useful.

Cheers,
- Vali



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux