Skip to content

Commit

Permalink
revert 7218dda2c91f.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 12, 2019
1 parent 2e8945f commit f9b5f52
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
Binary file modified VisualC/external/lib/x64/libFLAC-8.dll
Binary file not shown.
Binary file modified VisualC/external/lib/x86/libFLAC-8.dll
Binary file not shown.
Binary file modified Xcode/Frameworks/FLAC.framework/Versions/A/FLAC
Binary file not shown.
24 changes: 24 additions & 0 deletions external/libflac/dylibversion.patch
@@ -0,0 +1,24 @@
report 11.0 dylib minversion (as in libflac-1.2.1) instead of 12.

--- libflac/ltmain.sh~
+++ libflac/ltmain.sh
@@ -8882,15 +8882,15 @@
# Darwin ld doesn't like 0 for these options...
func_arith $current + 1
minor_current=$func_arith_result
- xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
- verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ xlcverstring="$wl-compatibility_version 11.0 $wl-current_version $wl$minor_current.$revision"
+ verstring="-compatibility_version 11.0 -current_version $minor_current.$revision"
# On Darwin other compilers
case $CC in
nagfor*)
- verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
+ verstring="$wl-compatibility_version 11.0 $wl-current_version $wl$minor_current.$revision"
;;
*)
- verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ verstring="-compatibility_version 11.0 -current_version $minor_current.$revision"
;;
esac
;;
8 changes: 4 additions & 4 deletions external/libflac/ltmain.sh
Expand Up @@ -8882,15 +8882,15 @@ func_mode_link ()
# Darwin ld doesn't like 0 for these options...
func_arith $current + 1
minor_current=$func_arith_result
xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
xlcverstring="$wl-compatibility_version 11.0 $wl-current_version $wl$minor_current.$revision"
verstring="-compatibility_version 11.0 -current_version $minor_current.$revision"
# On Darwin other compilers
case $CC in
nagfor*)
verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
verstring="$wl-compatibility_version 11.0 $wl-current_version $wl$minor_current.$revision"
;;
*)
verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
verstring="-compatibility_version 11.0 -current_version $minor_current.$revision"
;;
esac
;;
Expand Down
2 changes: 1 addition & 1 deletion external/libflac/src/libFLAC/bitreader.c
Expand Up @@ -428,7 +428,7 @@ FLAC__bool FLAC__bitreader_read_raw_int32(FLAC__BitReader *br, FLAC__int32 *val,
return false;
/* sign-extend *val assuming it is currently bits wide. */
/* From: https://graphics.stanford.edu/~seander/bithacks.html#FixedSignExtend */
mask = bits >= 33 ? 0 : 1u << (bits - 1);
mask = 1u << (bits - 1);
*val = (uval ^ mask) - mask;
return true;
}
Expand Down

0 comments on commit f9b5f52

Please sign in to comment.