Les articles publiés sur le site
-
14 octobre 2019, par NY00123
Replace unsigned with uint32_t in prototypes; Fixes DJGPP builds.
- [DH] include/test_libs_common/file_utils_flac.h
- [DH] include/test_libs_common/metadata_utils.h
- [DH] src/flac/analyze.h
- [DH] src/flac/encode.h
- [DH] src/flac/utils.h
-
9 octobre 2019, par sezero
move the new public get_decoder_client_data function to public header.
- [DH] include/FLAC/stream_decoder.h
- [DH] src/libFLAC/include/protected/stream_decoder.h
-
8 octobre 2019, par sezero
configure.ac: allow several compiler flags for clang
The flac configury marked clang as 'not being gcc' and excluded
a lot of compiler switches, most importantly the visibility flags,
from being used with it. This was done possibly after a problem
reported at: https://github.com/erikd/libsndfile/issues/49 .
This patch does the following:
- m4/gcc_version.m4 (XIPH_GCC_VERSION): set GCC_MAJOR_VERSION and
GCC_MINOR_VERSION to 0 for non-gcc. Previously, they were left
unset.
- configure: the gcc version checks are, naturally, against non-
zero values, so, allow many compiler switches to be used with
clang without affecting real-gcc cases.
- configure: When setting CFLAGS="-O3 -funroll-loops", also set
CXXFLAGS="-O3". Prevents g++ warnings with _FORTIFY_SOURCE, i.e.:
'_FORTIFY_SOURCE requires compiling with optimization (-O)'
Tested compilation using gcc-7.3.1 and clang-5.0.2 on x86_64-linux,
and gcc-4.4.7 and clang-3.4.2 on an i686-linux. Also tested cross-
compiling for Mac OS X using clang-5.0.2.
- [DH] configure.ac
- [DH] m4/gcc_version.m4
-
8 octobre 2019, par sezero
cmake: do not add visibility attributes to shared lib builds for win32.
- [DH] src/libFLAC++/CMakeLists.txt
- [DH] src/libFLAC/CMakeLists.txt
-
8 octobre 2019, par sezero
make dllexport work with compilers other than MSVC
the issue is, flac and metaflac exes rely on flac_internal_???_utf8()
procedures from windows_unicode_filenames.c and there is no easy way
to exclude them from exports without breaking things. So export them
explicitly (they are exported anyway w/o this patch), but add a FIXME
note about the kludge in windows_unicode_filenames.c.
- [DH] configure.ac
- [DH] include/FLAC++/export.h
- [DH] include/FLAC/export.h
- [DH] src/libFLAC/windows_unicode_filenames.c