Fixed build issue with MacPorts Clang 16 (missing TARGET_OS_OSX). (#9498)

This commit is contained in:
nilFinx 2026-09-01 03:42:46 +11:00 committed by GitHub
parent ebc7307db5
commit e0537bf72b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16241,7 +16241,7 @@ static void Platform_SetClipboardTextFn_DefaultImpl(ImGuiContext*, const char* t
::CloseClipboard();
}
#elif defined(__APPLE__) && TARGET_OS_OSX && defined(IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS)
#elif defined(__APPLE__) && defined(TARGET_OS_OSX) && TARGET_OS_OSX && defined(IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS)
#include <Carbon/Carbon.h> // Use old API to avoid need for separate .mm file
static PasteboardRef main_clipboard = 0;