diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-03-07 10:14:02 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-03-07 10:14:02 -0800 |
| commit | 76f647feb1e6e0cd42ee3de44d92c0d89d5126a6 (patch) | |
| tree | c7ebae1c9cf0bc97293062f1ae11224e2aa6a291 | |
| parent | 03deecdf207190d1e133ca304f33d2d946ee6ca3 (diff) | |
| download | vcpkg-76f647feb1e6e0cd42ee3de44d92c0d89d5126a6.tar.gz vcpkg-76f647feb1e6e0cd42ee3de44d92c0d89d5126a6.zip | |
[alac-decoder] Fix x64
| -rw-r--r-- | ports/alac-decoder/no-pragma-warning.patch | 14 | ||||
| -rw-r--r-- | ports/alac-decoder/portfile.cmake | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ports/alac-decoder/no-pragma-warning.patch b/ports/alac-decoder/no-pragma-warning.patch new file mode 100644 index 000000000..97e2960c8 --- /dev/null +++ b/ports/alac-decoder/no-pragma-warning.patch @@ -0,0 +1,14 @@ +diff --git a/alac.c b/alac.c
+index b829e29..8e8805f 100644
+--- a/alac.c
++++ b/alac.c
+@@ -284,7 +284,9 @@ static int count_leading_zeros(int input)
+ return output;
+ }
+ #else
++#if !defined(_MSC_VER)
+ #warning using generic count leading zeroes. You may wish to write one for your CPU / compiler
++#endif
+ static int count_leading_zeros(int input)
+ {
+ int output = 0;
diff --git a/ports/alac-decoder/portfile.cmake b/ports/alac-decoder/portfile.cmake index 732ed2631..c1390d7f8 100644 --- a/ports/alac-decoder/portfile.cmake +++ b/ports/alac-decoder/portfile.cmake @@ -15,6 +15,7 @@ vcpkg_apply_patches( SOURCE_PATH ${SOURCE_PATH} PATCHES ${CMAKE_CURRENT_LIST_DIR}/remove_stdint_headers.patch + ${CMAKE_CURRENT_LIST_DIR}/no-pragma-warning.patch ) vcpkg_configure_cmake( |
