This allows for compilation on *BSD-based platforms (e.g. macOS) and
requires that math.h is explicitely included where needed. Also, some
cleaning up of #includes.
Tested on OpenBSD (gcc 4.9.4 and clang 6.0.0), Ubuntu Linux 18.04.1
(gcc 7.3.0 and clang 6.0.0), macOS 10.12.6 (gcc 7.3.0 and Apple LLVM 9)
and Windows 7 (gcc 4.9.3, latest Rtools).
This allows for compilation on *BSD-based platforms (e.g. macOS) and requires that
math.h
is explicitely included where needed. Also, some cleaning up of#include
s.Tested on OpenBSD (gcc 4.9.4 and clang 6.0.0), Ubuntu Linux 18.04.1 (gcc 7.3.0 and clang 6.0.0), macOS 10.12.6 (gcc 7.3.0 and Apple LLVM 9) and Windows 7 (gcc 4.9.3, latest Rtools).