fmt: include <cstdlib> for malloc/free declarations

Recent FreeBSD -CURRENT builds fail because malloc/free are used
without including the proper declarations.

Add <cstdlib> alongside the other standard library headers inside
the existing non-module include block.

This matches upstream fmt behavior and fixes builds with newer
Clang/libc++ toolchains.
This commit is contained in:
Emanuel Haupt 2026-05-08 10:36:38 +02:00
parent b5fd6f72e3
commit 78de3e54bc

View file

@ -42,6 +42,7 @@
#ifndef FMT_MODULE
# include <cmath> // std::signbit
# include <cstdlib> // std::malloc, std::free
# include <cstddef> // std::byte
# include <cstdint> // uint32_t
# include <cstring> // std::memcpy