Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

xrick: Fix up -wundef warnings in miniz library

Ensure that if a posistive condition results in "#define XXX 1", ensure
we set "#define XXX 0" if that test fails. This is necessary because
the code uses "#if XXX" isntead of "#ifdef XXX" all over the place.

Change-Id: I16157fd6ae251a70331f48a895b6c53a6648ab2b

+14 -7
+14 -1
apps/plugins/xrick/3rd_party/miniz/miniz.c
··· 202 202 #if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__i386) || defined(__i486__) || defined(__i486) || defined(i386) || defined(__ia64__) || defined(__x86_64__) 203 203 // MINIZ_X86_OR_X64_CPU is only used to help set the below macros. 204 204 #define MINIZ_X86_OR_X64_CPU 1 205 + #else 206 + #define MINIZ_X86_OR_X64_CPU 0 205 207 #endif 208 + 206 209 207 210 #if (__BYTE_ORDER__==__ORDER_LITTLE_ENDIAN__) || MINIZ_X86_OR_X64_CPU 208 211 // Set MINIZ_LITTLE_ENDIAN to 1 if the processor is little endian. 209 212 #define MINIZ_LITTLE_ENDIAN 1 210 213 #endif 211 214 215 + #ifndef MINIZ_USE_UNALIGNED_LOADS_AND_STORES 212 216 #if MINIZ_X86_OR_X64_CPU 213 217 // Set MINIZ_USE_UNALIGNED_LOADS_AND_STORES to 1 on CPU's that permit efficient integer loads and stores from unaligned addresses. 214 218 #define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 1 219 + #else 220 + #define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0 221 + #endif 215 222 #endif 216 223 217 - #if defined(_M_X64) || defined(_WIN64) || defined(__MINGW64__) || defined(_LP64) || defined(__LP64__) || defined(__ia64__) || defined(__x86_64__) 224 + #ifndef MINIZ_HAS_64BIT_REGISTERS 225 + #if defined(_M_X64) || defined(_WIN64) || defined(__MINGW64__) || defined(_LP64) || defined(__LP64__) || defined(__ia64__) || defined(__x86_64__) || defined(__aarch64__) 218 226 // Set MINIZ_HAS_64BIT_REGISTERS to 1 if operations on 64-bit integers are reasonably fast (and don't involve compiler generated calls to helper functions). 219 227 #define MINIZ_HAS_64BIT_REGISTERS 1 228 + #else 229 + #define MINIZ_HAS_64BIT_REGISTERS 0 230 + #endif 220 231 #endif 221 232 222 233 #if (__GNUC__ >= 7) ··· 757 768 758 769 #if MINIZ_HAS_64BIT_REGISTERS 759 770 #define TINFL_USE_64BIT_BITBUF 1 771 + #else 772 + #define TINFL_USE_64BIT_BITBUF 0 760 773 #endif 761 774 762 775 #if TINFL_USE_64BIT_BITBUF
-6
apps/plugins/xrick/system/miniz_config.h
··· 25 25 #define MINIZ_NO_MALLOC 26 26 #ifdef ROCKBOX 27 27 # define MINIZ_NO_ASSERT 28 - # ifndef SIMULATOR 29 - # define MINIZ_X86_OR_X64_CPU 0 30 - # define MINIZ_HAS_64BIT_REGISTERS 0 31 - # define TINFL_USE_64BIT_BITBUF 0 32 - # define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0 33 - # endif /* ndef SIMULATOR */ 34 28 #endif 35 29 36 30 #endif /* ndef _MINIZ_CONFIG_H */