Commit 51cad0aa authored by Alois SCHLOEGL's avatar Alois SCHLOEGL

* fix compilation error or clang/apple -

  test for compiler (not platform).
  Note, macro __GNUC__ is also defined by clang
parent ae3282a1
......@@ -159,13 +159,11 @@ void stfnum::fexp_init(const Vector_double& data, double base, double peak, doub
Vector_double peeled( stfio::vec_scal_minus(data, floor));
if (increasing) peeled = stfio::vec_scal_mul(peeled, -1.0);
std::transform(peeled.begin(), peeled.end(), peeled.begin(),
#if defined(__GNUC__)
log);
#elif defined(_WINDOWS)
#if defined(_MSC_VER)
std::logl);
#elif defined(__APPLE__)
#elif defined(__clang__)
std::logl);
#else
#else // defined(__GNUC__) // all gcc-based compilers including mingw
log);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment