X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=builddate.c;h=e38d9b18fc8655a3f6eb129290838aec07a39a86;hp=c20120b0e7b3e67c25361cc053be46d19b418195;hb=49f0e1cbc8bc4ea8a165e8b86092c40bf4599a8e;hpb=ff5947f97081e10c4ce112d4d51c2d1fa14ebba8 diff --git a/builddate.c b/builddate.c index c20120b0..e38d9b18 100644 --- a/builddate.c +++ b/builddate.c @@ -1,2 +1,17 @@ +#define STRINGIFY2(arg) #arg +#define STRINGIFY(arg) STRINGIFY2(arg) -char *buildstring = __TIME__ " " __DATE__; +extern const char *buildstring; +const char *buildstring = +#ifndef NO_BUILD_TIMESTAMPS +__TIME__ " " __DATE__ " " +#endif +#ifdef SVNREVISION +STRINGIFY(SVNREVISION) +#else +"-" +#endif +#ifdef BUILDTYPE +" " STRINGIFY(BUILDTYPE) +#endif +;