Cleanup: remove stdio.h header from MEM_guardedalloc.h

This was included for `FILE *` which isn't used in the header.

Ref D10799
This commit is contained in:
Campbell Barton
2021-03-24 16:43:17 +11:00
parent 3f47df577d
commit 865025c343
23 changed files with 26 additions and 2 deletions

View File

@@ -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"

View File

@@ -19,6 +19,7 @@
*/
#include <cstdlib>
#include <stdio.h> /* Needed for `printf` on WIN32/APPLE. */
#include "MEM_guardedalloc.h"
#include "mallocn_intern.h"

View File

@@ -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>

View File

@@ -21,6 +21,7 @@
*/
#include <stdarg.h>
#include <stdio.h> /* printf */
#include <stdlib.h>
#include <string.h> /* memcpy */
#include <sys/types.h>