common: don't include <math.h> or <cmath> if already available
We don't want to include <cmath> because it will undefine most of the
macros in <math.h>, and we don't want to include <math.h> if we already
have <cmath> since it will define those macros and apparently the code
using SIMDe prefers <cmath>.
@@ -803,12 +803,14 @@ typedef SIMDE_FLOAT64_TYPE simde_float64;
#if !defined(SIMDE_NO_MATH_H)
#define SIMDE_HAVE_MATH_H
+ #if !defined(HUGE_VAL)
#if defined(__cplusplus)
#include <cmath>
#else
#include <math.h>
#endif
#endif
+#endif
#if !defined(simde_isnan)
#if defined(isnan)
