aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CodecPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/CodecPriv.h')
-rw-r--r--tests/CodecPriv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CodecPriv.h b/tests/CodecPriv.h
index 515dbdec2a..50c205c16a 100644
--- a/tests/CodecPriv.h
+++ b/tests/CodecPriv.h
@@ -4,6 +4,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#ifndef CodecPriv_DEFINED
+#define CodecPriv_DEFINED
#include "SkBitmap.h"
#include "SkCodec.h"
@@ -32,3 +34,4 @@ inline bool decode_memory(const void* mem, size_t size, SkBitmap* bm) {
bm->rowBytes(), nullptr, colorPtr, colorCountPtr);
return result == SkCodec::kSuccess || result == SkCodec::kIncompleteInput;
}
+#endif // CodecPriv_DEFINED