Kart-Public/src/comptime.c

26 lines
547 B
C
Raw Normal View History

2014-03-15 09:59:03 -07:00
/*
* Compiles date and time.
*
* Kalaron: Can't this be somewhere else instead of in an extra c file?
* Alam: Code::Block, XCode and the Makefile touch this file to update
* the timestamp
*
*/
2016-07-05 21:09:17 -07:00
#if (defined(CMAKECONFIG))
#include "config.h"
const char *compbranch = SRB2_COMP_BRANCH;
const char *comprevision = SRB2_COMP_REVISION;
#elif (defined(COMPVERSION))
2014-03-15 09:59:03 -07:00
#include "comptime.h"
2016-07-05 21:09:17 -07:00
2014-03-15 09:59:03 -07:00
#else
2016-07-05 21:09:17 -07:00
const char *compbranch = "Unknown";
2014-03-15 09:59:03 -07:00
const char *comprevision = "illegal";
2016-07-05 21:09:17 -07:00
2014-03-15 09:59:03 -07:00
#endif
const char *compdate = __DATE__;
const char *comptime = __TIME__;