Skip to content

Commit

Permalink
Directly include cmath
Browse files Browse the repository at this point in the history
Other source files already assume that cmath is available. The same can
be done here, too.
  • Loading branch information
a-andre authored and svigerske committed Jul 23, 2024
1 parent 114754d commit b5428d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions src/ClpHelperFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@
#define ClpHelperFunctions_H

#include "ClpConfig.h"
#ifdef HAVE_CMATH
#include <cmath>
#else
#ifdef HAVE_MATH_H
#include <math.h>
#else
#error "don't have header file for math"
#endif
#endif

/**
Note (JJF) I have added some operations on arrays even though they may
Expand Down
8 changes: 0 additions & 8 deletions src/CoinAbcHelperFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@
#define CoinAbcHelperFunctions_H

#include "ClpConfig.h"
#ifdef HAVE_CMATH
#include <cmath>
#else
#ifdef HAVE_MATH_H
#include <math.h>
#else
#include <cmath>
#endif
#endif
#include "CoinAbcCommon.hpp"
#ifndef abc_assert
#define abc_assert(condition) \
Expand Down

0 comments on commit b5428d2

Please sign in to comment.