Exclude Android-only cpu-features.h from non-Android builds.
authoragl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 Nov 2009 03:21:57 +0000 (03:21 +0000)
committeragl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 Nov 2009 03:21:57 +0000 (03:21 +0000)
This is needed when building Chromium for ARM.

Patch by Joel Stanley <joel@chromium.org>

git-svn-id: http://skia.googlecode.com/svn/trunk@435 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkBitmapProcState_filter.h
src/opts/SkBitmapProcState_opts_arm.cpp
src/opts/SkBlitRow_opts_arm.cpp

index bb9625a..95d6a26 100644 (file)
  * limitations under the License.
  */
 
-#ifdef __arm__
+#ifdef ANDROID
     #include <machine/cpu-features.h>
 #endif
+
 #include "SkColorPriv.h"
 
 /*
index 707304c..dfb5586 100644 (file)
  * limitations under the License.
  */
 
-#include <machine/cpu-features.h>
+#ifdef ANDROID
+    #include <machine/cpu-features.h>
+#endif
+
 #include "SkBitmapProcState.h"
 #include "SkColorPriv.h"
 #include "SkUtils.h"
index ae77bca..cb72473 100644 (file)
  ** limitations under the License.
  */
 
-#include <machine/cpu-features.h>
+#ifdef ANDROID
+    #include <machine/cpu-features.h>
+#endif
+
 #include "SkBlitRow.h"
 #include "SkColorPriv.h"
 #include "SkDither.h"