From 42390e7aa20b8823462a1840c8bd00544c7a233a Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 8 Apr 2025 01:27:39 +0800 Subject: Source: Include specific CoreFoundation headers instead of umbrella header Some CoreFoundation headers included by the umbrella header, which we do not need, use syntax that GCC does not support. Avoid including them. GCC-Issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115880 --- Source/CPack/cmCPackDragNDropGenerator.cxx | 3 ++- Source/cmFindProgramCommand.cxx | 4 +++- Source/cmGlobalXCodeGenerator.cxx | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx index 4c518ac..5968159 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.cxx +++ b/Source/CPack/cmCPackDragNDropGenerator.cxx @@ -10,7 +10,8 @@ #include #include -#include +#include +#include #include #include "cmsys/Base64.h" diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx index dd22b41..af7123a 100644 --- a/Source/cmFindProgramCommand.cxx +++ b/Source/cmFindProgramCommand.cxx @@ -18,7 +18,9 @@ class cmExecutionStatus; #if defined(__APPLE__) -# include +# include +# include +# include #endif struct cmFindProgramHelper diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 7fa21d0..e691b1e 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -57,7 +57,10 @@ #include "cmake.h" #if !defined(CMAKE_BOOTSTRAP) && defined(__APPLE__) -# include +# include +# include +# include +# include # if !TARGET_OS_IPHONE # define HAVE_APPLICATION_SERVICES # include -- cgit v0.12