summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/mspack/system-mspack.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/mspack/system-mspack.h b/rbutil/rbutilqt/mspack/system-mspack.h
index dd3c325ffa..7a033cb04a 100644
--- a/rbutil/rbutilqt/mspack/system-mspack.h
+++ b/rbutil/rbutilqt/mspack/system-mspack.h
@@ -108,7 +108,12 @@ extern int mspack_valid_system(struct mspack_system *sys);
108# define mspack_memcmp memcmp 108# define mspack_memcmp memcmp
109#else 109#else
110/* inline memcmp() */ 110/* inline memcmp() */
111static 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
116static INLINE int mspack_memcmp(const void *s1, const void *s2, size_t n) {
112 unsigned char *c1 = (unsigned char *) s1; 117 unsigned char *c1 = (unsigned char *) s1;
113 unsigned char *c2 = (unsigned char *) s2; 118 unsigned char *c2 = (unsigned char *) s2;
114 if (n == 0) return 0; 119 if (n == 0) return 0;