Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2006-04-17 23:20:02 +0400
committerJoseph Gilbert <ascotan@gmail.com>2006-04-17 23:20:02 +0400
commit6d6b36f009be00e2a206ece90c514127f1f867fb (patch)
tree48393e5699f832a50309517703de2036b85ae8e3
parent5768e9a9dda8ec941195f0e978549a0e31b0caf4 (diff)
Fixes an error that prevents builds on msvc.
version 1.58 assumes the usage of the BUILD_DATE macro. When this macro is not defined the extern declarations cause the linker to fail. As a sidenote there is no 'winbuildinfo.c' file that the BUILD_DATE macro assumes is present on win32 systems....
-rw-r--r--source/creator/creator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 0d85d6fd819..3f45117b91e 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -97,10 +97,12 @@
#endif
// from buildinfo.c
+#ifdef BUILD_DATE
extern char * build_date;
extern char * build_time;
extern char * build_platform;
extern char * build_type;
+#endif
/* Local Function prototypes */
static void print_help();
@@ -152,11 +154,15 @@ static void blender_esc(int sig)
static void print_version(void)
{
+#ifdef BUILD_DATE
printf ("Blender %d.%02d Build\n", G.version/100, G.version%100);
printf ("\tbuild date: %s\n", build_date);
printf ("\tbuild time: %s\n", build_time);
printf ("\tbuild platform: %s\n", build_platform);
printf ("\tbuild type: %s\n", build_type);
+#else
+ printf ("Blender %d.%02d\n", G.version/100, G.version%100);
+#endif
}
static void print_help(void)