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 alexey.lysiuk
parent e1ae8bbc59
commit 3d63f63fb2
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