remove __cplusplus guard
The file cannot be used as a C header anyway.
Change-Id: Ic33341fce894e48fb0a50b8c7a14c32b59dc9223
Reviewed-on: https://skia-review.googlesource.com/134321
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index a4dcc3c..db694e9 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -17,6 +17,7 @@
// IWYU pragma: end_exports
#include <string.h>
+#include <utility>
/** \file SkTypes.h
*/
@@ -228,13 +229,6 @@
*/
#define SK_InvalidUniqueID 0
-/****************************************************************************
- The rest of these only build with C++
-*/
-#ifdef __cplusplus
-
-#include <utility>
-
/** Generic swap function. Classes with efficient swaps should specialize this function to take
their fast path. This function is used by SkTSort. */
template <typename T> static inline void SkTSwap(T& a, T& b) {
@@ -342,6 +336,4 @@
SkNoncopyable& operator=(const SkNoncopyable&) = delete;
};
-#endif /* C++ */
-
#endif