1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

FLAC: Retarget header includes in 1.4.3 lib files

This commit is contained in:
attila 2023-11-08 17:39:12 +01:00
parent 1b09659d52
commit fef3160a5b
34 changed files with 127 additions and 127 deletions

View file

@ -46,7 +46,7 @@
#include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */ #include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */
#endif #endif
#include <stdlib.h> /* for size_t, malloc(), etc */ #include <stdlib.h> /* for size_t, malloc(), etc */
#include "share/compat.h" #include "compat.h"
#ifndef SIZE_MAX #ifndef SIZE_MAX
# ifndef SIZE_T_MAX # ifndef SIZE_T_MAX

View file

@ -173,7 +173,7 @@
#ifdef _WIN32 #ifdef _WIN32
/* All char* strings are in UTF-8 format. Added to support Unicode files on Windows */ /* All char* strings are in UTF-8 format. Added to support Unicode files on Windows */
#include "share/win_utf8_io.h" #include "win_utf8_io.h"
#define flac_printf printf_utf8 #define flac_printf printf_utf8
#define flac_fprintf fprintf_utf8 #define flac_fprintf fprintf_utf8
#define flac_vfprintf vfprintf_utf8 #define flac_vfprintf vfprintf_utf8

View file

@ -34,7 +34,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include "private/bitmath.h" #include "include/private/bitmath.h"
/* An example of what FLAC__bitmath_silog2() computes: /* An example of what FLAC__bitmath_silog2() computes:
* *

View file

@ -36,14 +36,14 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "private/bitmath.h" #include "include/private/bitmath.h"
#include "private/bitreader.h" #include "include/private/bitreader.h"
#include "private/crc.h" #include "include/private/crc.h"
#include "private/cpu.h" #include "include/private/cpu.h"
#include "private/macros.h"
#include "FLAC/assert.h" #include "../assert.h"
#include "share/compat.h" #include "../compat.h"
#include "share/endswap.h" #include "../endswap.h"
/* Things should be fastest when this matches the machine word size */ /* Things should be fastest when this matches the machine word size */
/* WATCHOUT: if you change this you must also change the following #defines down to COUNT_ZERO_MSBS2 below to match */ /* WATCHOUT: if you change this you must also change the following #defines down to COUNT_ZERO_MSBS2 below to match */

View file

@ -36,15 +36,15 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "private/bitwriter.h" #include "include/private/bitwriter.h"
#include "private/crc.h" #include "include/private/crc.h"
#include "private/format.h" #include "include/private/format.h"
#include "private/macros.h"
#include "private/stream_encoder.h" #include "include/private/stream_encoder.h"
#include "FLAC/assert.h" #include "../assert.h"
#include "share/alloc.h" #include "../alloc.h"
#include "share/compat.h" #include "../compat.h"
#include "share/endswap.h" #include "../endswap.h"
/* Things should be fastest when this matches the machine word size */ /* Things should be fastest when this matches the machine word size */
/* WATCHOUT: if you change this you must also change the following #defines down to SWAP_BE_WORD_TO_HOST below to match */ /* WATCHOUT: if you change this you must also change the following #defines down to SWAP_BE_WORD_TO_HOST below to match */

View file

@ -34,8 +34,8 @@
# include <config.h> # include <config.h>
#endif #endif
#include "private/cpu.h" #include "include/private/cpu.h"
#include "share/compat.h" #include "../compat.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -34,7 +34,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include "private/crc.h" #include "include/private/crc.h"
/* CRC-8, poly = x^8 + x^2 + x^1 + x^0, init = 0 */ /* CRC-8, poly = x^8 + x^2 + x^1 + x^0, init = 0 */

View file

@ -36,11 +36,11 @@
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>
#include "share/compat.h" #include "../compat.h"
#include "private/bitmath.h" #include "include/private/bitmath.h"
#include "private/fixed.h" #include "include/private/fixed.h"
#include "private/macros.h"
#include "FLAC/assert.h" #include "../assert.h"
#ifdef local_abs #ifdef local_abs
#undef local_abs #undef local_abs

View file

@ -34,9 +34,9 @@
# include <config.h> # include <config.h>
#endif #endif
#include "FLAC/assert.h" #include "../assert.h"
#include "share/compat.h" #include "../compat.h"
#include "private/float.h" #include "include/private/float.h"
#ifdef FLAC__INTEGER_ONLY_LIBRARY #ifdef FLAC__INTEGER_ONLY_LIBRARY

View file

@ -37,12 +37,12 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> /* for qsort() */ #include <stdlib.h> /* for qsort() */
#include <string.h> /* for memset() */ #include <string.h> /* for memset() */
#include "FLAC/assert.h" #include "../assert.h"
#include "FLAC/format.h" #include "../format.h"
#include "share/alloc.h" #include "../alloc.h"
#include "share/compat.h" #include "../compat.h"
#include "private/format.h" #include "include/private/format.h"
#include "private/macros.h"
#if (defined GIT_COMMIT_HASH && defined GIT_COMMIT_DATE) #if (defined GIT_COMMIT_HASH && defined GIT_COMMIT_DATE)
# ifdef GIT_COMMIT_TAG # ifdef GIT_COMMIT_TAG

View file

@ -33,10 +33,10 @@
#ifndef FLAC__PRIVATE__BITMATH_H #ifndef FLAC__PRIVATE__BITMATH_H
#define FLAC__PRIVATE__BITMATH_H #define FLAC__PRIVATE__BITMATH_H
#include "FLAC/ordinals.h" #include "../../../ordinals.h"
#include "FLAC/assert.h" #include "../../../assert.h"
#include "share/compat.h" #include "../../../compat.h"
#if defined(_MSC_VER) #if defined(_MSC_VER)
#include <intrin.h> /* for _BitScanReverse* */ #include <intrin.h> /* for _BitScanReverse* */

View file

@ -34,7 +34,7 @@
#define FLAC__PRIVATE__BITREADER_H #define FLAC__PRIVATE__BITREADER_H
#include <stdio.h> /* for FILE */ #include <stdio.h> /* for FILE */
#include "FLAC/ordinals.h" #include "../../../ordinals.h"
#include "cpu.h" #include "cpu.h"
/* /*

View file

@ -34,7 +34,7 @@
#define FLAC__PRIVATE__BITWRITER_H #define FLAC__PRIVATE__BITWRITER_H
#include <stdio.h> /* for FILE */ #include <stdio.h> /* for FILE */
#include "FLAC/ordinals.h" #include "../../../ordinals.h"
/* /*
* opaque structure definition * opaque structure definition

View file

@ -33,7 +33,7 @@
#ifndef FLAC__PRIVATE__CPU_H #ifndef FLAC__PRIVATE__CPU_H
#define FLAC__PRIVATE__CPU_H #define FLAC__PRIVATE__CPU_H
#include "FLAC/ordinals.h" #include "../../../ordinals.h"
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>

View file

@ -33,7 +33,7 @@
#ifndef FLAC__PRIVATE__CRC_H #ifndef FLAC__PRIVATE__CRC_H
#define FLAC__PRIVATE__CRC_H #define FLAC__PRIVATE__CRC_H
#include "FLAC/ordinals.h" #include "../../../ordinals.h"
/* 8 bit CRC generator, MSB shifted first /* 8 bit CRC generator, MSB shifted first
** polynomial = x^8 + x^2 + x^1 + x^0 ** polynomial = x^8 + x^2 + x^1 + x^0

View file

@ -37,9 +37,9 @@
#include <config.h> #include <config.h>
#endif #endif
#include "private/cpu.h" #include "cpu.h"
#include "private/float.h" #include "float.h"
#include "FLAC/format.h" #include "../../../format.h"
/* /*
* FLAC__fixed_compute_best_predictor() * FLAC__fixed_compute_best_predictor()

View file

@ -37,7 +37,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include "FLAC/ordinals.h" #include "../../../ordinals.h"
/* /*
* All the code in libFLAC that uses float and double * All the code in libFLAC that uses float and double

View file

@ -33,7 +33,7 @@
#ifndef FLAC__PRIVATE__FORMAT_H #ifndef FLAC__PRIVATE__FORMAT_H
#define FLAC__PRIVATE__FORMAT_H #define FLAC__PRIVATE__FORMAT_H
#include "FLAC/format.h" #include "../../../format.h"
#if 0 /* UNUSED */ #if 0 /* UNUSED */
uint32_t FLAC__format_get_max_rice_partition_order(uint32_t blocksize, uint32_t predictor_order); uint32_t FLAC__format_get_max_rice_partition_order(uint32_t blocksize, uint32_t predictor_order);

View file

@ -37,9 +37,9 @@
#include <config.h> #include <config.h>
#endif #endif
#include "private/cpu.h" #include "cpu.h"
#include "private/float.h" #include "float.h"
#include "FLAC/format.h" #include "../../../format.h"
#ifndef FLAC__INTEGER_ONLY_LIBRARY #ifndef FLAC__INTEGER_ONLY_LIBRARY

View file

@ -26,7 +26,7 @@
* Still in the public domain, with no warranty. * Still in the public domain, with no warranty.
*/ */
#include "FLAC/ordinals.h" #include "../../../ordinals.h"
typedef union { typedef union {
FLAC__byte *p8; FLAC__byte *p8;

View file

@ -39,8 +39,8 @@
#include <stdlib.h> /* for size_t */ #include <stdlib.h> /* for size_t */
#include "private/float.h" #include "float.h"
#include "FLAC/ordinals.h" /* for FLAC__bool */ #include "../../../ordinals.h" /* for FLAC__bool */
/* Returns the unaligned address returned by malloc. /* Returns the unaligned address returned by malloc.
* Use free() on this address to deallocate. * Use free() on this address to deallocate.

View file

@ -44,8 +44,8 @@
#define FLAC__MAX_EXTRA_RESIDUAL_BPS 4 #define FLAC__MAX_EXTRA_RESIDUAL_BPS 4
#if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && defined FLAC__HAS_X86INTRIN #if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && defined FLAC__HAS_X86INTRIN
#include "private/cpu.h" #include "cpu.h"
#include "FLAC/format.h" #include "../../../format.h"
#ifdef FLAC__SSE2_SUPPORTED #ifdef FLAC__SSE2_SUPPORTED
extern void FLAC__precompute_partition_info_sums_intrin_sse2(const FLAC__int32 residual[], FLAC__uint64 abs_residual_partition_sums[], extern void FLAC__precompute_partition_info_sums_intrin_sse2(const FLAC__int32 residual[], FLAC__uint64 abs_residual_partition_sums[],

View file

@ -33,7 +33,7 @@
#ifndef FLAC__PRIVATE__STREAM_ENCODER_FRAMING_H #ifndef FLAC__PRIVATE__STREAM_ENCODER_FRAMING_H
#define FLAC__PRIVATE__STREAM_ENCODER_FRAMING_H #define FLAC__PRIVATE__STREAM_ENCODER_FRAMING_H
#include "FLAC/format.h" #include "../../../format.h"
#include "bitwriter.h" #include "bitwriter.h"
FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw, FLAC__bool update_vendor_string); FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw, FLAC__bool update_vendor_string);

View file

@ -37,8 +37,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include "private/float.h" #include "float.h"
#include "FLAC/format.h" #include "../../../format.h"
#ifndef FLAC__INTEGER_ONLY_LIBRARY #ifndef FLAC__INTEGER_ONLY_LIBRARY

View file

@ -33,9 +33,9 @@
#ifndef FLAC__PROTECTED__STREAM_DECODER_H #ifndef FLAC__PROTECTED__STREAM_DECODER_H
#define FLAC__PROTECTED__STREAM_DECODER_H #define FLAC__PROTECTED__STREAM_DECODER_H
#include "FLAC/stream_decoder.h" #include "../../../stream_decoder.h"
#if FLAC__HAS_OGG #if FLAC__HAS_OGG
#include "private/ogg_decoder_aspect.h" #include "../private/ogg_decoder_aspect.h"
#endif #endif
typedef struct FLAC__StreamDecoderProtected { typedef struct FLAC__StreamDecoderProtected {

View file

@ -33,14 +33,14 @@
#ifndef FLAC__PROTECTED__STREAM_ENCODER_H #ifndef FLAC__PROTECTED__STREAM_ENCODER_H
#define FLAC__PROTECTED__STREAM_ENCODER_H #define FLAC__PROTECTED__STREAM_ENCODER_H
#include "FLAC/stream_encoder.h" #include "../../../stream_encoder.h"
#if FLAC__HAS_OGG #if FLAC__HAS_OGG
#include "private/ogg_encoder_aspect.h" #include "../private/ogg_encoder_aspect.h"
#endif #endif
#ifndef FLAC__INTEGER_ONLY_LIBRARY #ifndef FLAC__INTEGER_ONLY_LIBRARY
#include "private/float.h" #include "../private/float.h"
#define FLAC__MAX_APODIZATION_FUNCTIONS 32 #define FLAC__MAX_APODIZATION_FUNCTIONS 32

View file

@ -37,12 +37,12 @@
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>
#include "FLAC/assert.h" #include "../assert.h"
#include "FLAC/format.h" #include "../format.h"
#include "share/compat.h" #include "../compat.h"
#include "private/bitmath.h" #include "include/private/bitmath.h"
#include "private/lpc.h" #include "include/private/lpc.h"
#include "private/macros.h"
#if !defined(NDEBUG) || defined FLAC__OVERFLOW_DETECT || defined FLAC__OVERFLOW_DETECT_VERBOSE #if !defined(NDEBUG) || defined FLAC__OVERFLOW_DETECT || defined FLAC__OVERFLOW_DETECT_VERBOSE
#include <stdio.h> #include <stdio.h>

View file

@ -30,15 +30,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "private/cpu.h" #include "include/private/cpu.h"
#ifndef FLAC__INTEGER_ONLY_LIBRARY #ifndef FLAC__INTEGER_ONLY_LIBRARY
#ifndef FLAC__NO_ASM #ifndef FLAC__NO_ASM
#if defined FLAC__CPU_ARM64 && FLAC__HAS_NEONINTRIN #if defined FLAC__CPU_ARM64 && FLAC__HAS_NEONINTRIN
#include "private/lpc.h" #include "include/private/lpc.h"
#include "FLAC/assert.h" #include "../assert.h"
#include "FLAC/format.h" #include "../format.h"
#include "private/macros.h"
#include <arm_neon.h> #include <arm_neon.h>
#if FLAC__HAS_A64NEONINTRIN #if FLAC__HAS_A64NEONINTRIN

View file

@ -5,10 +5,10 @@
#include <stdlib.h> /* for malloc() */ #include <stdlib.h> /* for malloc() */
#include <string.h> /* for memcpy() */ #include <string.h> /* for memcpy() */
#include "private/md5.h" #include "include/private/md5.h"
#include "share/alloc.h" #include "../alloc.h"
#include "share/compat.h" #include "../compat.h"
#include "share/endswap.h" #include "../endswap.h"
/* /*
* This code implements the MD5 message-digest algorithm. * This code implements the MD5 message-digest algorithm.

View file

@ -38,10 +38,10 @@
#include <stdint.h> #include <stdint.h>
#endif #endif
#include "private/memory.h" #include "include/private/memory.h"
#include "FLAC/assert.h" #include "../assert.h"
#include "share/compat.h" #include "../compat.h"
#include "share/alloc.h" #include "../alloc.h"
void *FLAC__memory_alloc_aligned(size_t bytes, void **aligned_address) void *FLAC__memory_alloc_aligned(size_t bytes, void **aligned_address)
{ {

View file

@ -39,20 +39,20 @@
#include <string.h> /* for memset/memcpy() */ #include <string.h> /* for memset/memcpy() */
#include <sys/types.h> /* for off_t */ #include <sys/types.h> /* for off_t */
#include <sys/stat.h> /* for stat() */ #include <sys/stat.h> /* for stat() */
#include "share/compat.h" #include "../compat.h"
#include "FLAC/assert.h" #include "../assert.h"
#include "share/alloc.h" #include "../alloc.h"
#include "protected/stream_decoder.h" #include "include/protected/stream_decoder.h"
#include "private/bitreader.h" #include "include/private/bitreader.h"
#include "private/bitmath.h" #include "include/private/bitmath.h"
#include "private/cpu.h" #include "include/private/cpu.h"
#include "private/crc.h" #include "include/private/crc.h"
#include "private/fixed.h" #include "include/private/fixed.h"
#include "private/format.h" #include "include/private/format.h"
#include "private/lpc.h" #include "include/private/lpc.h"
#include "private/md5.h" #include "include/private/md5.h"
#include "private/memory.h" #include "include/private/memory.h"
#include "private/macros.h"
/* technically this should be in an "export.c" but this is convenient enough */ /* technically this should be in an "export.c" but this is convenient enough */

View file

@ -43,29 +43,29 @@
#include <windows.h> /* for GetFileType() */ #include <windows.h> /* for GetFileType() */
#include <io.h> /* for _get_osfhandle() */ #include <io.h> /* for _get_osfhandle() */
#endif #endif
#include "share/compat.h" #include "../compat.h"
#include "FLAC/assert.h" #include "../assert.h"
#include "FLAC/stream_decoder.h" #include "../stream_decoder.h"
#include "protected/stream_encoder.h" #include "include/protected/stream_encoder.h"
#include "private/bitwriter.h" #include "include/private/bitwriter.h"
#include "private/bitmath.h" #include "include/private/bitmath.h"
#include "private/crc.h" #include "include/private/crc.h"
#include "private/cpu.h" #include "include/private/cpu.h"
#include "private/fixed.h" #include "include/private/fixed.h"
#include "private/format.h" #include "include/private/format.h"
#include "private/lpc.h" #include "include/private/lpc.h"
#include "private/md5.h" #include "include/private/md5.h"
#include "private/memory.h" #include "include/private/memory.h"
#include "private/macros.h"
#if FLAC__HAS_OGG #if FLAC__HAS_OGG
#include "private/ogg_helper.h" #include "include/private/ogg_helper.h"
#include "private/ogg_mapping.h" #include "include/private/ogg_mapping.h"
#endif #endif
#include "private/stream_encoder.h" #include "include/private/stream_encoder.h"
#include "private/stream_encoder_framing.h" #include "include/private/stream_encoder_framing.h"
#include "private/window.h" #include "include/private/window.h"
#include "share/alloc.h" #include "../alloc.h"
#include "share/private.h" #include "../private.h"
/* Exact Rice codeword length calculation is off by default. The simple /* Exact Rice codeword length calculation is off by default. The simple

View file

@ -36,10 +36,10 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> /* for strlen() */ #include <string.h> /* for strlen() */
#include "private/stream_encoder_framing.h" #include "include/private/stream_encoder_framing.h"
#include "private/crc.h" #include "include/private/crc.h"
#include "FLAC/assert.h" #include "../assert.h"
#include "share/compat.h" #include "../compat.h"
static FLAC__bool add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *method); static FLAC__bool add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *method);
static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[], const uint32_t residual_samples, const uint32_t predictor_order, const uint32_t rice_parameters[], const uint32_t raw_bits[], const uint32_t partition_order, const FLAC__bool is_extended); static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[], const uint32_t residual_samples, const uint32_t predictor_order, const uint32_t rice_parameters[], const uint32_t raw_bits[], const uint32_t partition_order, const FLAC__bool is_extended);

View file

@ -35,10 +35,10 @@
#endif #endif
#include <math.h> #include <math.h>
#include "share/compat.h" #include "../compat.h"
#include "FLAC/assert.h" #include "../assert.h"
#include "FLAC/format.h" #include "../format.h"
#include "private/window.h" #include "include/private/window.h"
#ifndef FLAC__INTEGER_ONLY_LIBRARY #ifndef FLAC__INTEGER_ONLY_LIBRARY