diff --git a/Sources/_OpenAPIGeneratorCore/Extensions/Foundation.swift b/Sources/_OpenAPIGeneratorCore/Extensions/Foundation.swift index d6051cb8..b75008a0 100644 --- a/Sources/_OpenAPIGeneratorCore/Extensions/Foundation.swift +++ b/Sources/_OpenAPIGeneratorCore/Extensions/Foundation.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import Foundation -#if hasFeature(RetroactiveAttribute) +#if $RetroactiveAttribute extension FileHandle: @retroactive TextOutputStream {} #else extension FileHandle: TextOutputStream {} diff --git a/Sources/swift-openapi-generator/Extensions.swift b/Sources/swift-openapi-generator/Extensions.swift index eccfd746..280d740d 100644 --- a/Sources/swift-openapi-generator/Extensions.swift +++ b/Sources/swift-openapi-generator/Extensions.swift @@ -16,7 +16,7 @@ import ArgumentParser import _OpenAPIGeneratorCore import Yams -#if hasFeature(RetroactiveAttribute) +#if $RetroactiveAttribute extension URL: @retroactive ExpressibleByArgument {} extension GeneratorMode: @retroactive ExpressibleByArgument {} extension FeatureFlag: @retroactive ExpressibleByArgument {}