[Bf-blender-cvs] [d9211b1] master: Fix compilation (size_t not defined) by including stddef.h in BLI_sys_types.h

Bastien Montagne noreply at git.blender.org
Tue Apr 15 09:13:40 CEST 2014


Commit: d9211b1e7b8503c67ad7898c09b338902e794e9d
Author: Bastien Montagne
Date:   Tue Apr 15 09:11:45 2014 +0200
https://developer.blender.org/rBd9211b1e7b8503c67ad7898c09b338902e794e9d

Fix compilation (size_t not defined) by including stddef.h in BLI_sys_types.h

===================================================================

M	source/blender/blenlib/BLI_sys_types.h

===================================================================

diff --git a/source/blender/blenlib/BLI_sys_types.h b/source/blender/blenlib/BLI_sys_types.h
index fcdbf16..b0a8ade 100644
--- a/source/blender/blenlib/BLI_sys_types.h
+++ b/source/blender/blenlib/BLI_sys_types.h
@@ -197,6 +197,8 @@ typedef uint64_t u_int64_t;
 
 #endif /* ifdef platform for types */
 
+#include <stddef.h>  /* size_t define */
+
 #ifdef HAVE_STDBOOL_H
 # include <stdbool.h>
 #elif !defined(__bool_true_false_are_defined) && !defined(__BOOL_DEFINED)




More information about the Bf-blender-cvs mailing list