Added missing __volatile__.

This commit is contained in:
Alexandre Julliard 2000-09-12 23:41:07 +00:00
parent 20cd9356a8
commit 7f04a17ec6
1 changed files with 6 additions and 6 deletions

View File

@ -87,12 +87,12 @@ static inline unsigned int strlenW( const WCHAR *str )
{
#if defined(__i386__) && defined(__GNUC__)
int dummy, res;
__asm__( "cld\n\t"
"repne\n\t"
"scasw\n\t"
"notl %0"
: "=c" (res), "=&D" (dummy)
: "0" (0xffffffff), "1" (str), "a" (0) );
__asm__ __volatile__( "cld\n\t"
"repne\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;