summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-05-18 09:41:31 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2016-05-19 02:41:33 +0000
commitfdf82f9b148c72c343286627af07bca002ecf99a (patch)
treee33669cb56ed770a7c85e611f6fdc0f8d6a7780a /utils.h
parent649a4efbb8439302f15be35563fe19ef2fc248b8 (diff)
downloadbubblewrap-fdf82f9b148c72c343286627af07bca002ecf99a.tar.gz
Use #pragma once for headers
It's shorter and more reliable. Also GCC/CLang specific, but that's fine because that's all we support anyways. Closes: #69 Closes: #70 Approved by: mrunalp
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/utils.h b/utils.h
index 539dbd7..9a504ec 100644
--- a/utils.h
+++ b/utils.h
@@ -16,8 +16,7 @@
*
*/
-#ifndef __UTILS_H__
-#define __UTILS_H__
+#pragma once
#include <assert.h>
#include <dirent.h>
@@ -163,5 +162,3 @@ steal_pointer (void *pp)
/* type safety */
#define steal_pointer(pp) \
(0 ? (*(pp)) : (steal_pointer) (pp))
-
-#endif /* __UTILS_H__ */