X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=builddate.c;h=e38d9b18fc8655a3f6eb129290838aec07a39a86;hb=c6fe51c93d8d1216aa6aa924937fdf768e6304cc;hp=dcf45be2d10382cbe395222558735cb04ae82a66;hpb=ea7c24e1fb41f3b1df984ac0eed6881c9fde16f5;p=xonotic%2Fdarkplaces.git diff --git a/builddate.c b/builddate.c index dcf45be2..e38d9b18 100644 --- a/builddate.c +++ b/builddate.c @@ -1,3 +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 +;