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.

Fix MSVC not knowing inline for C code.

MSVC needs to use __inline instead of inline when compiling C code (the inline
keyword is only avaliable in C++). Use the preprocessor to work around this.

Change-Id: Ic9884a7421cee7dc7c943ab205312f50233fb100

+6 -1
+6 -1
rbutil/rbutilqt/mspack/system-mspack.h
··· 108 108 # define mspack_memcmp memcmp 109 109 #else 110 110 /* inline memcmp() */ 111 - static inline int mspack_memcmp(const void *s1, const void *s2, size_t n) { 111 + #ifdef _MSC_VER /* MSVC requires use of __inline instead of inline */ 112 + #define INLINE __inline 113 + #else 114 + #define INLINE inline 115 + #endif 116 + static INLINE int mspack_memcmp(const void *s1, const void *s2, size_t n) { 112 117 unsigned char *c1 = (unsigned char *) s1; 113 118 unsigned char *c2 = (unsigned char *) s2; 114 119 if (n == 0) return 0;