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