diff --git a/include/wine/port.h b/include/wine/port.h index 28c16238bf3..90c3798fd53 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -258,7 +258,7 @@ int usleep (unsigned int useconds); #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 e2a1f629669..62a9ec0d821 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