From ac8f8863c609f34b69d629ed72d6a234afeb11d5 Mon Sep 17 00:00:00 2001 From: Lode Date: Sun, 11 Sep 2016 14:12:51 +0200 Subject: include guards instead of pragma once --- lodepng_util.h | 7 +++++-- 1 file 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 #include #include "lodepng.h" -#pragma once - namespace lodepng { @@ -149,3 +150,5 @@ struct ZlibBlockInfo void extractZlibInfo(std::vector& zlibinfo, const std::vector& in); } // namespace lodepng + +#endif /*LODEPNG_UTIL_H inclusion guard*/ -- cgit v1.2.3