Add cstdlib include necessary to build with gcc14 libstdc++ (tdf#155715)cib_contract49-7.6.5.2.M3
commit367c6ab1660110a872b99c0db4aa7bc56fc8fdb0
authorMartin Jambor <mjambor@suse.cz>
Wed, 7 Jun 2023 16:11:45 +0000 (7 18:11 +0200)
committerThorsten Behrens <thorsten.behrens@allotropia.de>
Sat, 24 Feb 2024 21:10:50 +0000 (24 22:10 +0100)
treed6688297a59c5a85b1908dae72d064b8653947a1
parent15fecc4feeda9bf8a12a69154878674096311b3c
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>
store/source/storbase.hxx