diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-04-16 18:00:59 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-04-16 18:00:59 +0300 |
commit | 30249499c4ed6e398bd43b0bfb219e6a7b79e522 (patch) | |
tree | ffa5bc790f11810beefc23e0c840b1543def7c95 /intern | |
parent | 888e742f8463fc4b4c7f29810e22697d14441083 (diff) |
Gawain: fix compilation on MSVC 2013
attrib_binding.c uses NULL, so include stddef.
Also swapped stdlib for stddef in vertex_format.c, since it only needs NULL.
Not sure why MSVC 2017 and clang/Mac work without this...
Thanks to @youle for reporting!
Diffstat (limited to 'intern')
-rw-r--r-- | intern/gawain/src/attrib_binding.c | 1 | ||||
-rw-r--r-- | intern/gawain/src/vertex_format.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/intern/gawain/src/attrib_binding.c b/intern/gawain/src/attrib_binding.c index b174bc04f06..8a7fe3df66c 100644 --- a/intern/gawain/src/attrib_binding.c +++ b/intern/gawain/src/attrib_binding.c @@ -10,6 +10,7 @@ // the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #include "attrib_binding.h" +#include <stddef.h> #if MAX_VERTEX_ATTRIBS != 16 #error "attrib binding code assumes MAX_VERTEX_ATTRIBS = 16" diff --git a/intern/gawain/src/vertex_format.c b/intern/gawain/src/vertex_format.c index 924cff42362..d00a143e780 100644 --- a/intern/gawain/src/vertex_format.c +++ b/intern/gawain/src/vertex_format.c @@ -10,7 +10,7 @@ // the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #include "vertex_format.h" -#include <stdlib.h> +#include <stddef.h> #include <string.h> #define PACK_DEBUG 0 |