-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sci-physics/openmodelica: Add missing include statement to fix compil…
…ation issue with GCC 14 Signed-off-by: Ivan Lloro <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
sci-physics/openmodelica/files/openmodelica-1.23.1-include_algorithm.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
add <algorithm> to define std::unique and std::find | ||
Fixes compilation error with GCC 14 | ||
|
||
See https://github.com/OpenModelica/OMSimulator/pull/1295 | ||
--- a/OMSimulator/src/OMSimulatorLib/Model.cpp | ||
+++ b/OMSimulator/src/OMSimulatorLib/Model.cpp | ||
@@ -43,6 +43,7 @@ | ||
|
||
#include "minizip.h" | ||
#include <thread> | ||
+#include <algorithm> | ||
|
||
oms::Model::Model(const oms::ComRef& cref, const std::string& tempDir) | ||
: cref(cref), tempDir(tempDir), resultFilename(std::string(cref) + "_res.mat") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters