summaryrefslogtreecommitdiff
path: root/utils/gen-header.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/gen-header.sh')
-rwxr-xr-xutils/gen-header.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/utils/gen-header.sh b/utils/gen-header.sh
index fcb9c5e1..8b66c5dd 100755
--- a/utils/gen-header.sh
+++ b/utils/gen-header.sh
@@ -11,8 +11,8 @@ cat <<EOF > "$dst_file"
*
* libcamera.h - libcamera public API
*/
-#ifndef __LIBCAMERA_LIBCAMERA_H__
-#define __LIBCAMERA_LIBCAMERA_H__
+
+#pragma once
EOF
@@ -25,8 +25,3 @@ done | sort)
for header in $headers ; do
echo "#include <libcamera/$header>" >> "$dst_file"
done
-
-cat <<EOF >> "$dst_file"
-
-#endif /* __LIBCAMERA_LIBCAMERA_H__ */
-EOF