[Bf-blender-cvs] [7cdfe18] master: Fix compile error on MinGW64, time.h is required for gmtime.
Antony Riakiotakis
noreply at git.blender.org
Wed Nov 20 22:47:22 CET 2013
Commit: 7cdfe18385b8ab1036a2208860d73af920533ae3
Author: Antony Riakiotakis
Date: Wed Nov 20 23:47:05 2013 +0200
http://developer.blender.org/rB7cdfe18385b8ab1036a2208860d73af920533ae3
Fix compile error on MinGW64, time.h is required for gmtime.
===================================================================
M source/blender/blenloader/intern/readfile.c
M source/creator/creator.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index de055b2..ddb045d 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -40,6 +40,7 @@
#include <string.h> // for strrchr strncmp strstr
#include <math.h> // for fabs
#include <stdarg.h> /* for va_start/end */
+#include <time.h> /* for gmtime */
#include "BLI_utildefines.h"
#ifndef WIN32
diff --git a/source/creator/creator.c b/source/creator/creator.c
index adedab8..420dceb 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -63,6 +63,7 @@
#include <stddef.h>
#include <string.h>
#include <errno.h>
+#include <time.h>
/* This little block needed for linking to Blender... */
More information about the Bf-blender-cvs
mailing list