Bug 812667 - Make soundtouch compile properly if cpuid.h is not present. r=khuey

This commit is contained in:
Paul Adenot 2012-11-16 16:47:01 -08:00
parent 7ff5ce9065
commit 93ac2a5890
2 changed files with 2 additions and 2 deletions

View File

@ -475,7 +475,7 @@ unchanged:
-
- #if defined(__GNUC__) && defined(__i386__)
- // gcc
+ #if defined(__GNUC__)
+ #if defined(__GNUC__) && defined (HAVE_CPUID_H)
+ // gcc and clang
#include "cpuid.h"
#elif defined(_M_IX86)

View File

@ -43,7 +43,7 @@
#include "STTypes.h"
#if defined(SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS)
#if defined(__GNUC__)
#if defined(__GNUC__) && defined (HAVE_CPUID_H)
// gcc and clang
#include "cpuid.h"
#elif defined(_M_IX86)