ghostty/macos/Sources/App/macOS/ghostty-bridging-header.h
Bryan Lee 9c5ff5c4a7 build: fix macOS 26 SDK compatibility for App Intents
Add compile-time SDK version checking to conditionally compile macOS 26
features, allowing the project to build on macOS 15.

- Add SUPPORTS_MACOS_26_FEATURES macro in bridging header
- Wrap App Intents supportedModes properties with conditional compilation
- Fix TransparentTitlebarTerminalWindow method calls
2025-07-10 02:34:35 +08:00

13 lines
332 B
Objective-C

// C imports here are exposed to Swift.
#import "VibrantLayer.h"
// SDK version check for macOS 26 features
#import <AvailabilityMacros.h>
// Check if SDK version is macOS 26 or higher
// macOS 26.0 would be 260000 in the version macro
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 260000
#define SUPPORTS_MACOS_26_FEATURES 1
#endif