Fix compile error on MinGW64, time.h is required for gmtime.
authorAntony Riakiotakis <kalast@gmail.com>
Wed, 20 Nov 2013 21:47:05 +0000 (23:47 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 20 Nov 2013 21:47:05 +0000 (23:47 +0200)
source/blender/blenloader/intern/readfile.c
source/creator/creator.c

index de055b22d7405734cb24f0a6c8b980dbf53ad2ee..ddb045de29077d82ab4d6324763a32d21621c193 100644 (file)
@@ -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
index adedab80338fd56b2baec406c75bc7d60393ef58..420dceb812b9d072c0577e5c1b18bcca555cc847 100644 (file)
@@ -63,6 +63,7 @@
 #include <stddef.h>
 #include <string.h>
 #include <errno.h>
+#include <time.h>
 
 /* This little block needed for linking to Blender... */