mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[alac-decoder] Fix x64
This commit is contained in:
parent
03deecdf20
commit
76f647feb1
14
ports/alac-decoder/no-pragma-warning.patch
Normal file
14
ports/alac-decoder/no-pragma-warning.patch
Normal file
@ -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;
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user