Attempted fix for mingw buildinfo.c compile problem.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 20 Oct 2009 08:01:17 +0000 (08:01 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 20 Oct 2009 08:01:17 +0000 (08:01 +0000)
source/creator/buildinfo.c

index 3473814360ba3a2d0afdde94f483283dda944886..db24b50b82df9dea1b8c4e455c70ba251ae1f4df 100644 (file)
 #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