diff options
Diffstat (limited to 'src/opts')
-rw-r--r-- | src/opts/SkBitmapProcState_opts_arm.cpp | 5 | ||||
-rw-r--r-- | src/opts/SkBlitRow_opts_arm.cpp | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/opts/SkBitmapProcState_opts_arm.cpp b/src/opts/SkBitmapProcState_opts_arm.cpp index 707304c964..dfb558625f 100644 --- a/src/opts/SkBitmapProcState_opts_arm.cpp +++ b/src/opts/SkBitmapProcState_opts_arm.cpp @@ -14,7 +14,10 @@ * 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" diff --git a/src/opts/SkBlitRow_opts_arm.cpp b/src/opts/SkBlitRow_opts_arm.cpp index ae77bca56e..cb72473a6c 100644 --- a/src/opts/SkBlitRow_opts_arm.cpp +++ b/src/opts/SkBlitRow_opts_arm.cpp @@ -15,7 +15,10 @@ ** 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" |