]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - builddate.c
qdefs: Implement DP_FUNC_ALWAYSINLINE macro for platform-specific inline forcing
[xonotic/darkplaces.git] / builddate.c
index 912252b1146bd28f6d173a48aa83a2d9e21feafa..e38d9b18fc8655a3f6eb129290838aec07a39a86 100644 (file)
@@ -1,9 +1,15 @@
 #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)
+STRINGIFY(SVNREVISION)
+#else
+"-"
 #endif
 #ifdef BUILDTYPE
 " " STRINGIFY(BUILDTYPE)