Fix the corona bug. The render bug only though.
[xonotic/darkplaces.git] / builddate.c
index dcf45be..e38d9b1 100644 (file)
@@ -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
+;