Skip to content

Commit

Permalink
Merge pull request #221 from lukewakeford/fix/swift_package_flag
Browse files Browse the repository at this point in the history
Adds SWIFT_PACKAGE preprocessor definition
  • Loading branch information
lucdion authored Mar 11, 2023
2 parents 1c9b64a + f36c766 commit 4677936
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/Swift/FlexLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Created by Luc Dion on 2017-06-19.

import UIKit
#if FLEXLAYOUT_SWIFT_PACKAGE
#if FLEXLAYOUT_SWIFT_PACKAGE || SWIFT_PACKAGE
import FlexLayoutYogaKit
#endif

Expand Down
2 changes: 1 addition & 1 deletion Sources/Swift/Impl/FlexLayout+Enum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import UIKit

#if FLEXLAYOUT_SWIFT_PACKAGE
#if FLEXLAYOUT_SWIFT_PACKAGE || SWIFT_PACKAGE
import FlexLayoutYoga

extension YGFlexDirection {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Swift/Impl/FlexLayout+Private.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import UIKit
#if FLEXLAYOUT_SWIFT_PACKAGE
#if FLEXLAYOUT_SWIFT_PACKAGE || SWIFT_PACKAGE
import FlexLayoutYoga
#endif

Expand Down
2 changes: 1 addition & 1 deletion Sources/Swift/YGLayoutExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#if FLEXLAYOUT_SWIFT_PACKAGE
#if FLEXLAYOUT_SWIFT_PACKAGE || SWIFT_PACKAGE
import CoreGraphics
import FlexLayoutYoga
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/YogaKit/include/YogaKit/YGLayout+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#import "YGLayout.h"
#if FLEXLAYOUT_SWIFT_PACKAGE
#if FLEXLAYOUT_SWIFT_PACKAGE || SWIFT_PACKAGE
#import <yoga/Yoga.h>
#else
#import "Yoga.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/YogaKit/include/YogaKit/YGLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import <UIKit/UIKit.h>

#if FLEXLAYOUT_SWIFT_PACKAGE
#if FLEXLAYOUT_SWIFT_PACKAGE || SWIFT_PACKAGE
#import <yoga/YGEnums.h>
#import <yoga/Yoga.h>
#import <yoga/YGMacros.h>
Expand Down

0 comments on commit 4677936

Please sign in to comment.