Skip to content

Commit

Permalink
Fix header when compile with LIEF_EXTERNAL_SPDLOG=ON (#1080)
Browse files Browse the repository at this point in the history
* Fix header when compile with LIEF_EXTERNAL_SPDLOG

The header <algorithm> can be missing and std::remove_if may not be found
in DynamicEntryArray.cpp and DynamicEntryRunPath.cpp.
This is the case when compiled with LIEF_EXTERNAL_SPDLOG=ON
and fetch spdlog using FetchContent with the option OVERRIDE_FIND_PACKAGE.

---------

Co-authored-by: Romain Thomas <me@romainthomas.fr>
Co-authored-by: Romain Thomas <7450402+romainthomas@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 27, 2024
1 parent 9673580 commit f954c50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/sphinx/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changelog
* Add support for the ``LC_SUBCLIENT`` command: :class:`lief.MachO.SubClient`
* Add support for the ``LC_ROUTINE/LC_ROUTINE64`` command: :class:`lief.MachO.Routine`


0.15.1 - July 23th, 2024
------------------------

Expand Down
2 changes: 2 additions & 0 deletions src/ELF/DynamicEntryArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include "logging.hpp"

#include <algorithm>

namespace LIEF {
namespace ELF {

Expand Down
1 change: 1 addition & 0 deletions src/ELF/DynamicEntryRunPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "LIEF/Visitor.hpp"
#include "logging.hpp"

#include <algorithm>
#include <numeric>
#include <sstream>

Expand Down

0 comments on commit f954c50

Please sign in to comment.