Skip to content
Permalink
Browse files

Fix build on FreeBSD (#829)

On FreeBSD malloc.h is deprecated.
<cwctype> is needed for iswalpha.
  • Loading branch information...
pkubaj authored and madame-rachelle committed May 5, 2019
1 parent 6591429 commit 9ca0c6a97682e4d3659e817ab4d02b2d994c7b15
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/gamedata/fonts/font.cpp
  2. +1 −1 src/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h
@@ -35,6 +35,7 @@

// HEADER FILES ------------------------------------------------------------

#include <cwctype>
#include <stdlib.h>
#include <string.h>
#include <math.h>
@@ -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

0 comments on commit 9ca0c6a

Please sign in to comment.
You can’t perform that action at this time.