aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/DecodeFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/DecodeFile.h')
-rw-r--r--samplecode/DecodeFile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/samplecode/DecodeFile.h b/samplecode/DecodeFile.h
index 95f3e39983..450c1fb3d7 100644
--- a/samplecode/DecodeFile.h
+++ b/samplecode/DecodeFile.h
@@ -5,6 +5,9 @@
* found in the LICENSE file.
*/
+#ifndef DecodeFile_DEFINED
+#define DecodeFile_DEFINED
+
#include "SkBitmap.h"
#include "SkCodec.h"
#include "SkData.h"
@@ -36,3 +39,4 @@ static inline sk_sp<SkImage> decode_file(const char filename[]) {
sk_sp<SkData> data(SkData::MakeFromFileName(filename));
return data ? SkImage::MakeFromEncoded(data) : nullptr;
}
+#endif // DecodeFile_DEFINED