mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 15:32:53 +01:00
cpu: check for _MSC_VER before using msvc inline asm
_M_IX86 will be defined in mingw builds after including windows.h. as the gcc inline asm is first, this missing check would only have caused an error if the code was reorganized. Change-Id: I395679bcfc43e94d308d1ceb0c0fbf932b2c378c
This commit is contained in:
parent
e2a83d7109
commit
3fca851a20
@ -57,7 +57,7 @@ static WEBP_INLINE uint64_t xgetbv(void) {
|
||||
}
|
||||
#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 // >= VS2010 SP1
|
||||
#define xgetbv() _xgetbv(0)
|
||||
#elif defined(_M_IX86)
|
||||
#elif defined(_MSC_VER) && defined(_M_IX86)
|
||||
static WEBP_INLINE uint64_t xgetbv(void) {
|
||||
uint32_t eax_, edx_;
|
||||
__asm {
|
||||
|
Loading…
x
Reference in New Issue
Block a user