Fix build on FreeBSD (#829)

On FreeBSD malloc.h is deprecated.
<cwctype> is needed for iswalpha.
This commit is contained in:
pkubaj 2019-05-05 07:28:46 +02:00 committed by Rachael Alexanderson
parent 6591429f25
commit 9ca0c6a976
2 changed files with 2 additions and 1 deletions

View file

@ -35,6 +35,7 @@
// HEADER FILES ------------------------------------------------------------
#include <cwctype>
#include <stdlib.h>
#include <string.h>
#include <math.h>

View file

@ -2229,7 +2229,7 @@ remove them if not needed.
#include <mutex> // for std::mutex
#include <atomic> // for std::atomic
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__)
#include <malloc.h> // for aligned_alloc()
#endif