Page MenuHome

Cycles: Fix "undeclared identifier 'malloc'" compilation error when WITH_BLENDER_GUARDEDALLOC is not defined
ClosedPublic

Authored by howetuft (howetuft) on May 31 2020, 4:51 PM.

Details

Summary

(in 'src/util/util_guarded_allocator.h', when compiling 'src/util/util_guarded_allocator.cpp')

If WITH_BLENDER_GUARDEDALLOC is not defined, GuardedAllocator::allocate falls back to malloc. However, malloc is not declared, so compiler complains...
This patch provides malloc declaration.

Diff Detail

Repository
rC Cycles