diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-24 08:43:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-24 11:34:44 +0300 |
commit | 865025c343ac38f649b671d74fb6903dc2ec87da (patch) | |
tree | b386829f015eb691e66916bf30f92b6938ff65d0 /intern/guardedalloc | |
parent | 3f47df577d05478a324b6eca80df0a33c838fab8 (diff) |
Cleanup: remove stdio.h header from MEM_guardedalloc.h
This was included for `FILE *` which isn't used in the header.
Ref D10799
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r-- | intern/guardedalloc/MEM_guardedalloc.h | 2 | ||||
-rw-r--r-- | intern/guardedalloc/intern/leak_detector.cc | 1 | ||||
-rw-r--r-- | intern/guardedalloc/intern/mallocn_guarded_impl.c | 1 | ||||
-rw-r--r-- | intern/guardedalloc/intern/mallocn_lockfree_impl.c | 1 |
4 files changed, 3 insertions, 2 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h index df5593ba484..3d51c04f929 100644 --- a/intern/guardedalloc/MEM_guardedalloc.h +++ b/intern/guardedalloc/MEM_guardedalloc.h @@ -49,8 +49,6 @@ #ifndef __MEM_GUARDEDALLOC_H__ #define __MEM_GUARDEDALLOC_H__ -#include <stdio.h> /* needed for FILE* */ - /* Needed for uintptr_t and attributes, exception, don't use BLI anywhere else in `MEM_*` */ #include "../../source/blender/blenlib/BLI_compiler_attrs.h" #include "../../source/blender/blenlib/BLI_sys_types.h" diff --git a/intern/guardedalloc/intern/leak_detector.cc b/intern/guardedalloc/intern/leak_detector.cc index fb8d4e72cac..3ce6996649e 100644 --- a/intern/guardedalloc/intern/leak_detector.cc +++ b/intern/guardedalloc/intern/leak_detector.cc @@ -19,6 +19,7 @@ */ #include <cstdlib> +#include <stdio.h> /* Needed for `printf` on WIN32/APPLE. */ #include "MEM_guardedalloc.h" #include "mallocn_intern.h" diff --git a/intern/guardedalloc/intern/mallocn_guarded_impl.c b/intern/guardedalloc/intern/mallocn_guarded_impl.c index 6a0d104d47d..a7c3dc0951e 100644 --- a/intern/guardedalloc/intern/mallocn_guarded_impl.c +++ b/intern/guardedalloc/intern/mallocn_guarded_impl.c @@ -25,6 +25,7 @@ #include <stdarg.h> #include <stddef.h> /* offsetof */ +#include <stdio.h> /* printf */ #include <stdlib.h> #include <string.h> /* memcpy */ #include <sys/types.h> diff --git a/intern/guardedalloc/intern/mallocn_lockfree_impl.c b/intern/guardedalloc/intern/mallocn_lockfree_impl.c index 8f5c9cf85a9..a843086a1f1 100644 --- a/intern/guardedalloc/intern/mallocn_lockfree_impl.c +++ b/intern/guardedalloc/intern/mallocn_lockfree_impl.c @@ -21,6 +21,7 @@ */ #include <stdarg.h> +#include <stdio.h> /* printf */ #include <stdlib.h> #include <string.h> /* memcpy */ #include <sys/types.h> |