]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - builddate.c
physics: fix and refactor unsticking
[xonotic/darkplaces.git] / builddate.c
index b7b53519ae65d2eecf9a155d4b73a1415fcd6770..7106dc9b669e41a19a90e92c539e150da6f6f1cd 100644 (file)
@@ -1,9 +1,16 @@
 #define STRINGIFY2(arg) #arg
 #define STRINGIFY(arg) STRINGIFY2(arg)
 
-const char *buildstring = __TIME__ " " __DATE__
-#ifdef SVNREVISION
-" " STRINGIFY(SVNREVISION)
+extern const char *buildstring;
+const char *buildstring =
+#ifdef VCREVISION
+STRINGIFY(VCREVISION)
+#else
+"-"
+#endif
+#ifndef NO_BUILD_TIMESTAMPS
+//" " __TIME__
+" " __DATE__
 #endif
 #ifdef BUILDTYPE
 " " STRINGIFY(BUILDTYPE)