Skip to content

Commit

Permalink
fixed Xcode SPM integration
Browse files Browse the repository at this point in the history
  • Loading branch information
3a4oT committed Oct 6, 2020
1 parent dcb9fda commit 96ba0b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ let package = Package(
.headerSearchPath("ImageCategories"),
.headerSearchPath("PinCache"),
.define("USE_PINCACHE", to: "1"),
.define("PIN_WEBP", to: "1"),
]),
]
)
14 changes: 3 additions & 11 deletions Source/Classes/include/PINRemoteImageMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,10 @@
#endif

#ifndef PIN_WEBP
#if SWIFT_PACKAGE
#if __has_include(<webp/decode.h>)
#define PIN_WEBP 1
#else
#define PIN_WEBP 0
#endif
#if __has_include(<WebPDecoder/decode.h>)
#define PIN_WEBP 1
#else
#if __has_include(<WebPDecoder/decode.h>)
#define PIN_WEBP 1
#else
#define PIN_WEBP 0
#endif
#define PIN_WEBP 0
#endif
#endif

Expand Down

0 comments on commit 96ba0b9

Please sign in to comment.