add version information

This commit is contained in:
Steffen Jaeckel 2015-04-25 15:25:42 +02:00
parent 6db706e857
commit 846d7f36eb
2 changed files with 10 additions and 1 deletions

View File

@ -16,6 +16,15 @@
#include <ctype.h>
#include <limits.h>
/* 0xMaMiPaXX
* Major
* Minor
* Patch
* XX - undefined
*/
#define TFM_VERSION 0x000C0000
#define TFM_VERSION_S "0.12"
#ifndef MIN
#define MIN(x,y) ((x)<(y)?(x):(y))
#endif

View File

@ -15,7 +15,7 @@ const char *fp_ident(void)
memset(buf, 0, sizeof(buf));
snprintf(buf, sizeof(buf)-1,
"TomsFastMath\n"
"TomsFastMath " TFM_VERSION_S "\n"
#if defined(TFM_IDENT_BUILD_DATE)
"Built on " __DATE__ " at " __TIME__ "\n"
#endif