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:
-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)