Skip to content

Commit

Permalink
Merge pull request #5 from SDWebImage/fix_module_import
Browse files Browse the repository at this point in the history
Fix the compatible issue when using the Static Library (CocoaPods) to install SDWebImage
  • Loading branch information
dreampiggy authored Dec 13, 2019
2 parents 29b7ba3 + 83b2fcf commit 9c1173e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SDWebImagePDFCoder/Classes/SDImagePDFCoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
// Created by lizhuoli on 2018/10/28.
//

#if __has_include(<SDWebImage/SDWebImage.h>)
#import <SDWebImage/SDWebImage.h>
#else
@import SDWebImage;
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 4 additions & 0 deletions SDWebImagePDFCoder/Classes/SDWebImagePDFCoderDefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
// Created by lizhuoli on 2018/10/28.
//

#if __has_include(<SDWebImage/SDWebImage.h>)
#import <SDWebImage/SDWebImage.h>
#else
@import SDWebImage;
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down

0 comments on commit 9c1173e

Please sign in to comment.