[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23991] trunk/blender/source/creator/ buildinfo.c: Attempted fix for mingw buildinfo.c compile problem.
Brecht Van Lommel
brecht at blender.org
Tue Oct 20 10:01:17 CEST 2009
Revision: 23991
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23991
Author: blendix
Date: 2009-10-20 10:01:17 +0200 (Tue, 20 Oct 2009)
Log Message:
-----------
Attempted fix for mingw buildinfo.c compile problem.
Modified Paths:
--------------
trunk/blender/source/creator/buildinfo.c
Modified: trunk/blender/source/creator/buildinfo.c
===================================================================
--- trunk/blender/source/creator/buildinfo.c 2009-10-20 07:54:07 UTC (rev 23990)
+++ trunk/blender/source/creator/buildinfo.c 2009-10-20 08:01:17 UTC (rev 23991)
@@ -31,10 +31,13 @@
#include <config.h>
#endif
+#define STRINGIFY(x) XSTRINGIFY(x)
+#define XSTRINGIFY(x) #x
+
#ifdef BUILD_DATE
-const char * build_date=BUILD_DATE;
-const char * build_time=BUILD_TIME;
-const char * build_rev=BUILD_REV;
-const char * build_platform=BUILD_PLATFORM;
-const char * build_type=BUILD_TYPE;
+const char * build_date=STRINGIFY(BUILD_DATE);
+const char * build_time=STRINGIFY(BUILD_TIME);
+const char * build_rev=STRINGIFY(BUILD_REV);
+const char * build_platform=STRINGIFY(BUILD_PLATFORM);
+const char * build_type=STRINGIFY(BUILD_TYPE);
#endif
More information about the Bf-blender-cvs
mailing list