Include stdlib.h where its functions are used

Fixes build failure on OS X 10.10 and 10.11:

error: use of undeclared identifier 'free'
error: use of undeclared identifier 'malloc'
error: use of undeclared identifier 'qsort'
This commit is contained in:
Ryan Schmidt
2022-03-17 02:54:37 -05:00
parent e33c01cc40
commit 53ff18d337
3 changed files with 4 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
#include "GpThreadEvent_Cpp11.h" #include "GpThreadEvent_Cpp11.h"
#include <stdlib.h>
GpThreadEvent_Cpp11::GpThreadEvent_Cpp11(bool autoReset, bool startSignaled) GpThreadEvent_Cpp11::GpThreadEvent_Cpp11(bool autoReset, bool startSignaled)
: m_flag(startSignaled) : m_flag(startSignaled)
, m_autoReset(autoReset) , m_autoReset(autoReset)

View File

@@ -4,6 +4,7 @@
#include "GpApplicationName.h" #include "GpApplicationName.h"
#include "GpIOStream.h" #include "GpIOStream.h"
#include <stdlib.h>
#include <time.h> #include <time.h>
#include <cstring> #include <cstring>

View File

@@ -10,6 +10,7 @@
#include "DeflateCodec.h" #include "DeflateCodec.h"
#include <algorithm> #include <algorithm>
#include <stdlib.h>
namespace namespace
{ {