From 8a8e00af0770e019ac1d9e829a38efbf61cc9c51 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 20 Oct 2009 08:01:17 +0000 Subject: Attempted fix for mingw buildinfo.c compile problem. --- source/creator/buildinfo.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'source/creator/buildinfo.c') diff --git a/source/creator/buildinfo.c b/source/creator/buildinfo.c index 3473814360b..db24b50b82d 100644 --- a/source/creator/buildinfo.c +++ b/source/creator/buildinfo.c @@ -31,10 +31,13 @@ #include #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 -- cgit v1.2.3