Merge "fix gcc-4.0 apple 32-bit build"

This commit is contained in:
James Zern 2012-01-18 13:15:23 -08:00 committed by Gerrit Code Review
commit b3482c4300

View File

@ -21,7 +21,8 @@ extern "C" {
// SSE2 detection.
//
#if defined(__pic__) && defined(__i386__)
// apple/darwin gcc-4.0.1 defines __PIC__, but not __pic__ with -fPIC.
#if (defined(__pic__) || defined(__PIC__)) && defined(__i386__)
static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) {
__asm__ volatile (
"mov %%ebx, %%edi\n"