Thread (48 messages) flat view 48 messages, 8 authors, 2016-06-15
STALE3735d

[PATCH 11/15] Define strncasecmp and ftruncate for MSVC

From: Marius Storm-Olsen <hidden>
Date: 2016-06-15 22:47:25
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Marius Storm-Olsen <redacted>
---
 compat/msvc.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/compat/msvc.h b/compat/msvc.h
index 53a6d30..9c753a5 100644
--- a/compat/msvc.h
+++ b/compat/msvc.h
@@ -10,6 +10,8 @@
 #define __inline__ __inline
 #define __attribute__(x)
 #define va_copy(dst, src)     ((dst) = (src))
+#define strncasecmp  _strnicmp
+#define ftruncate    _chsize
 
 static __inline int strcasecmp (const char *s1, const char *s2)
 {
-- 
1.6.2.1.418.g33d56.dirty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help