mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Fix building when configured with --disable-shared.
The problem was that the function safe_malloc_mul_2op_() was originally defined as static inline in inclide/share/alloc.h but had to be moved because GCC was refusing to inline it. Once moved however, static linking would fail when building the flac executable because the function ended up beiong linked twice.
This commit is contained in:
@@ -52,6 +52,6 @@ FLAC__bool FLAC__memory_alloc_aligned_unsigned_array(size_t elements, unsigned *
|
||||
#ifndef FLAC__INTEGER_ONLY_LIBRARY
|
||||
FLAC__bool FLAC__memory_alloc_aligned_real_array(size_t elements, FLAC__real **unaligned_pointer, FLAC__real **aligned_pointer);
|
||||
#endif
|
||||
void *safe_malloc_mul_2op_(size_t size1, size_t size2);
|
||||
void *safe_malloc_mul_2op_p(size_t size1, size_t size2);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user