Don't build memcpy_unaligned on 386 to avoid MSVC breakage (reported
by Jon Griffiths).
diff --git a/include/wine/port.h b/include/wine/port.h
index 28c1623..90c3798 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -258,7 +258,7 @@
#endif /* !defined(HAVE_USLEEP) */
#ifdef __i386__
-extern inline void *memcpy_unaligned( void *dst, const void *src, size_t size )
+static inline void *memcpy_unaligned( void *dst, const void *src, size_t size )
{
return memcpy( dst, src, size );
}
diff --git a/libs/port/memcpy_unaligned.c b/libs/port/memcpy_unaligned.c
index e2a1f62..62a9ec0 100644
--- a/libs/port/memcpy_unaligned.c
+++ b/libs/port/memcpy_unaligned.c
@@ -21,7 +21,9 @@
#include "config.h"
#include "wine/port.h"
+#ifndef __i386__
void *memcpy_unaligned( void *dst, const void *src, size_t size )
{
return memcpy( dst, src, size );
}
+#endif