flr / FLXSA

The FLXSA package
http://flr-project.org/FLXSA
2 stars 3 forks source link

Include stdlib.h instead of malloc.h for portability. #5

Closed zeloff closed 5 years ago

zeloff commented 5 years ago

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).

iagomosqueira commented 5 years ago

Great, many thanks for this.