summaryrefslogtreecommitdiffstats
path: root/src/util/strndup.h
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-03-20 16:04:40 +0000
committerEmil Velikov <[email protected]>2017-03-22 16:55:22 +0000
commitd542d2fc13fd67a444c202b706fa44a34cc53c90 (patch)
tree187babbff7c2b13a9db00334ba8884c83504802f /src/util/strndup.h
parent43a9ca8eb42884e2386a4ff8cda5fa4b925b290e (diff)
util: consistently use ifndef guards over pragma once
Signed-off-by: Emil Velikov <[email protected]> Acked-by: Vedran Miletić <[email protected]> Acked-by: Juha-Pekka Heikkila <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/util/strndup.h')
-rw-r--r--src/util/strndup.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/strndup.h b/src/util/strndup.h
index c5ed7a8c8d2..a3d73984132 100644
--- a/src/util/strndup.h
+++ b/src/util/strndup.h
@@ -21,7 +21,8 @@
* IN THE SOFTWARE.
*/
-#pragma once
+#ifndef STRNDUP_H
+#define STRNDUP_H
#include <stdlib.h> // size_t
@@ -38,3 +39,5 @@ char *strndup(const char *str, size_t max);
#endif
#endif
+
+#endif /* STRNDUP_H */