diff --git a/reactos/include/wine/port.h b/reactos/include/wine/port.h index 7fabbad7554..9ad3902659b 100644 --- a/reactos/include/wine/port.h +++ b/reactos/include/wine/port.h @@ -33,20 +33,9 @@ static inline unsigned int strlenW( const WCHAR *str ) { -#if defined(__i386__) && defined(__GNUC__) - int dummy, res; - __asm__ __volatile__( "cld\n\t" - "repnz\n\t" - "scasw\n\t" - "notl %0" - : "=c" (res), "=&D" (dummy) - : "0" (0xffffffff), "1" (str), "a" (0) ); - return res - 1; -#else const WCHAR *s = str; while (*s) s++; return s - str; -#endif } #endif /* _ROS_WINE_PORT */