From b5428d2965fb9243d48831555a185c0e18424b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Tue, 23 Jul 2024 10:58:33 +0200 Subject: [PATCH] Directly include cmath Other source files already assume that cmath is available. The same can be done here, too. --- src/ClpHelperFunctions.hpp | 8 -------- src/CoinAbcHelperFunctions.hpp | 8 -------- 2 files changed, 16 deletions(-) diff --git a/src/ClpHelperFunctions.hpp b/src/ClpHelperFunctions.hpp index 5afb68dcd..4d6b7994e 100644 --- a/src/ClpHelperFunctions.hpp +++ b/src/ClpHelperFunctions.hpp @@ -6,15 +6,7 @@ #define ClpHelperFunctions_H #include "ClpConfig.h" -#ifdef HAVE_CMATH #include -#else -#ifdef HAVE_MATH_H -#include -#else -#error "don't have header file for math" -#endif -#endif /** Note (JJF) I have added some operations on arrays even though they may diff --git a/src/CoinAbcHelperFunctions.hpp b/src/CoinAbcHelperFunctions.hpp index 85e8f5bcf..bffffd8e1 100644 --- a/src/CoinAbcHelperFunctions.hpp +++ b/src/CoinAbcHelperFunctions.hpp @@ -6,15 +6,7 @@ #define CoinAbcHelperFunctions_H #include "ClpConfig.h" -#ifdef HAVE_CMATH #include -#else -#ifdef HAVE_MATH_H -#include -#else -#include -#endif -#endif #include "CoinAbcCommon.hpp" #ifndef abc_assert #define abc_assert(condition) \