RFE: libshout #define version
I am developing a PHP module called phpShout (http://phpshout.sf.net/) that wraps the libshout library, providing PHP function calls to the libshout C library. There have been several instances when it would be very nice to refer to the local libshout library's Version number using C #define statements.
Namely, my library supposedly supports libshout>=2.0, but refers to SHOUT_FORMAT_OGG which didn't appear until 2.1. It would be nice to be able to do a check with #if and re-map this constant to SHOUT_FORMAT_VORBIS if the local library is only 2.0 at compile time, instead of at runtime using shout_version(). MySQL, for instance, exports:
#define MYSQL_SERVER_VERSION "4.1.16"
for pretty printing
#define MYSQL_VERSION_ID 40116
for version comparisons
I would like to see (at least) both of these added to shout.h...
#define SHOUT_VERSION "2.2"
#define SHOUT_VERSION_ID 20200
...The first for the printing of the library version in phpinfo() and the second for version checks at compile time. Thanks!