Add cstdlib include necessary to build with gcc14 libstdc++ (tdf#155715)

Without explicitely including <cstdlib>, compiling some files
including store/source/storbase.hxx (such as store/source/storpage.cxx
which includes it through store/source/storpage.hxx) will result in
errors:

  error: ‘malloc’ is not a member of ‘std’

and

  error: ‘free’ is not a member of ‘std’

This patch simply adds the necessary include.

Change-Id: I3d1fa2a17c5ae9d512f1de9d434dac3d82fc353f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152712
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Martin Jambor
2023-06-07 18:11:45 +02:00
committed by Stephan Bergmann
parent 5aefe9d1cb
commit db98a3f1b1

View File

@@ -32,6 +32,7 @@
#include <store/types.h>
#include <cstdlib>
#include <memory>
#include <utility>