From: Hannes Date: Sat, 22 Nov 2014 18:36:25 +0000 (+0100) Subject: fix mingw c compiler casting X-Git-Url: http://git.meshlink.io/?p=catta;a=commitdiff_plain;h=a71541c2252bd51fb5f02480d8aa902efcf3e858 fix mingw c compiler casting --- diff --git a/src/compat/windows/wincompat.h b/src/compat/windows/wincompat.h index 0bb36d5..7fe21f4 100644 --- a/src/compat/windows/wincompat.h +++ b/src/compat/windows/wincompat.h @@ -56,14 +56,14 @@ struct msghdr { static inline struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *m) { WSAMSG wm; wm.Control.len = m->msg_controllen; - wm.Control.buf = reinterpret_cast(m->msg_control); + wm.Control.buf = (char*)m->msg_control; return WSA_CMSG_FIRSTHDR(&wm); } static inline struct cmsghdr *CMSG_NXTHDR(struct msghdr *m, struct cmsghdr *c) { WSAMSG wm; wm.Control.len = m->msg_controllen; - wm.Control.buf = reinterpret_cast(m->msg_control); + wm.Control.buf = (char*)m->msg_control; return WSA_CMSG_NXTHDR(&wm, c); }