Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Patch
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: freeswitch-core
-
Labels:None
-
Environment:All
-
Platform:Linux x86_64/gcc
-
FreeSWITCH GIT Revision:unknown
-
Reproduced with GIT HEAD?:unknown
Description
#1 Add integer version of each part (major, minor, micro and revision)
NOTE: micro set to "trunk" actually makes this less useful for svn checkouts... (is that set in the release tarballs?)
Add SWITCH_VERSION_TO_INT to generate a single integer version for comparison purposes, e.g.:
#if SWITCH_VERSION_INT >= SWITCH_VERSION_TO_INT(1, 0, 2, 0)
do_something_only_1.0.2_or_higher_can_do();
#endif
NOTE: Last parameter is the patchlevel
#2 Install switch_version.h, so external modules can use it (without breaking the Makefile dependency handling of switch_version.h)
#3 fix "make core-install" (and variants) to install the include files too
NOTE: micro set to "trunk" actually makes this less useful for svn checkouts... (is that set in the release tarballs?)
Add SWITCH_VERSION_TO_INT to generate a single integer version for comparison purposes, e.g.:
#if SWITCH_VERSION_INT >= SWITCH_VERSION_TO_INT(1, 0, 2, 0)
do_something_only_1.0.2_or_higher_can_do();
#endif
NOTE: Last parameter is the patchlevel
#2 Install switch_version.h, so external modules can use it (without breaking the Makefile dependency handling of switch_version.h)
#3 fix "make core-install" (and variants) to install the include files too