aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-06-15 13:58:41 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-15 20:32:05 +0000
commit29f2eaf6e51593038effe18cdcf6577b7dd24a5b (patch)
tree32c243a4e4a159c64d09fc387d21a1cb061f4e2e /include
parent08a50e02dba37427e7d479d2222b08259d226d50 (diff)
Remove string.h from SkTypes.h
Change-Id: I2be84f37ea11a386206a96d2fef6e0fc9464e21b Reviewed-on: https://skia-review.googlesource.com/135264 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkMatrix44.h5
-rw-r--r--include/core/SkTypes.h1
-rw-r--r--include/gpu/gl/GrGLFunctions.h2
-rw-r--r--include/private/SkFloatingPoint.h2
4 files changed, 7 insertions, 3 deletions
diff --git a/include/core/SkMatrix44.h b/include/core/SkMatrix44.h
index 12004ef7d6..ab8c6162b4 100644
--- a/include/core/SkMatrix44.h
+++ b/include/core/SkMatrix44.h
@@ -8,11 +8,12 @@
#ifndef SkMatrix44_DEFINED
#define SkMatrix44_DEFINED
-#include <atomic>
-
#include "SkMatrix.h"
#include "SkScalar.h"
+#include <atomic>
+#include <cstring>
+
#ifdef SK_MSCALAR_IS_DOUBLE
#ifdef SK_MSCALAR_IS_FLOAT
#error "can't define MSCALAR both as DOUBLE and FLOAT"
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index e624d4518c..262002bbda 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -16,7 +16,6 @@
#include <stdint.h>
// IWYU pragma: end_exports
-#include <string.h>
#include <utility>
/** \file SkTypes.h
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h
index af1b9f79cd..e0bc39015f 100644
--- a/include/gpu/gl/GrGLFunctions.h
+++ b/include/gpu/gl/GrGLFunctions.h
@@ -12,6 +12,8 @@
#include "GrGLTypes.h"
#include "../private/SkTLogic.h"
+#include <cstring>
+
extern "C" {
///////////////////////////////////////////////////////////////////////////////
diff --git a/include/private/SkFloatingPoint.h b/include/private/SkFloatingPoint.h
index 8fe4cb404e..d3ebdc26e2 100644
--- a/include/private/SkFloatingPoint.h
+++ b/include/private/SkFloatingPoint.h
@@ -13,6 +13,8 @@
#include "SkSafe_math.h"
#include <float.h>
#include <math.h>
+#include <cstring>
+
#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1
#include <xmmintrin.h>