summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLode <lvandeve@gmail.com>2016-09-11 14:12:51 +0200
committerLode <lvandeve@gmail.com>2016-09-11 14:12:51 +0200
commitac8f8863c609f34b69d629ed72d6a234afeb11d5 (patch)
tree3355251ee93cc087772ad660901ff2ab6ce22716
parenta71964ed5fe4f82a32ac7f8201338900f66e855d (diff)
include guards instead of pragma once
-rw-r--r--lodepng_util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lodepng_util.h b/lodepng_util.h
index e74bbb5..236ad46 100644
--- a/lodepng_util.h
+++ b/lodepng_util.h
@@ -27,12 +27,13 @@ freely, subject to the following restrictions:
Extra C++ utilities for LodePNG, for convenience.
*/
+#ifndef LODEPNG_UTIL_H
+#define LODEPNG_UTIL_H
+
#include <string>
#include <vector>
#include "lodepng.h"
-#pragma once
-
namespace lodepng
{
@@ -149,3 +150,5 @@ struct ZlibBlockInfo
void extractZlibInfo(std::vector<ZlibBlockInfo>& zlibinfo, const std::vector<unsigned char>& in);
} // namespace lodepng
+
+#endif /*LODEPNG_UTIL_H inclusion guard*/