From 53ff18d337e35aaefb866a43f7924e7d182c0f77 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Thu, 17 Mar 2022 02:54:37 -0500 Subject: [PATCH] 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' --- AerofoilPortable/GpThreadEvent_Cpp11.cpp | 2 ++ AerofoilX/GpLogDriver_X.cpp | 1 + PortabilityLayer/ZipFileProxy.cpp | 1 + 3 files changed, 4 insertions(+) diff --git a/AerofoilPortable/GpThreadEvent_Cpp11.cpp b/AerofoilPortable/GpThreadEvent_Cpp11.cpp index 2e7ab51..c8ce5d7 100644 --- a/AerofoilPortable/GpThreadEvent_Cpp11.cpp +++ b/AerofoilPortable/GpThreadEvent_Cpp11.cpp @@ -1,5 +1,7 @@ #include "GpThreadEvent_Cpp11.h" +#include + GpThreadEvent_Cpp11::GpThreadEvent_Cpp11(bool autoReset, bool startSignaled) : m_flag(startSignaled) , m_autoReset(autoReset) diff --git a/AerofoilX/GpLogDriver_X.cpp b/AerofoilX/GpLogDriver_X.cpp index 1d5267a..16da415 100644 --- a/AerofoilX/GpLogDriver_X.cpp +++ b/AerofoilX/GpLogDriver_X.cpp @@ -4,6 +4,7 @@ #include "GpApplicationName.h" #include "GpIOStream.h" +#include #include #include diff --git a/PortabilityLayer/ZipFileProxy.cpp b/PortabilityLayer/ZipFileProxy.cpp index a4d9f44..a9003d4 100644 --- a/PortabilityLayer/ZipFileProxy.cpp +++ b/PortabilityLayer/ZipFileProxy.cpp @@ -10,6 +10,7 @@ #include "DeflateCodec.h" #include +#include namespace {