Comply with GCC extensions
This commit is contained in:
parent
c86361a08b
commit
19f8cf2599
|
@ -385,7 +385,7 @@ PH7_PRIVATE sxi32 SyMD5Compute(const void *pIn, sxu32 nLen, unsigned char zDiges
|
|||
* instructions.
|
||||
*/
|
||||
#define SHA_ROT(op, x, k) \
|
||||
({ unsigned int y; __asm__(op " %1,%0" : "=r" (y) : "I" (k), "0" (x)); y; })
|
||||
(__extension__({ unsigned int y; __asm__(op " %1,%0" : "=r" (y) : "I" (k), "0" (x)); y; }))
|
||||
#define rol(x,k) SHA_ROT("roll", x, k)
|
||||
#define ror(x,k) SHA_ROT("rorl", x, k)
|
||||
|
||||
|
@ -881,4 +881,4 @@ PH7_PRIVATE sxi32 SyUriEncode(const char *zSrc, sxu32 nLen, ProcConsumer xConsum
|
|||
zCur = zIn ;
|
||||
}
|
||||
return rc == SXRET_OK ? SXRET_OK : SXERR_ABORT;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue