summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-05-05 11:34:46 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-05-05 11:34:46 +0200
commit53905b78f479d8d9d42a8bd6336314031814e52a (patch)
treeb2abc5f528a5049d5035d84c236066f8408e77cd /tools
parentcaec5bd3d940458b96a1566561f4e624e53c5d92 (diff)
Use '#pragma once' for new header files.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/add_file4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/add_file b/tools/add_file
index d63b4ab..750ba30 100755
--- a/tools/add_file
+++ b/tools/add_file
@@ -60,9 +60,7 @@ function hfile() {
allfile $1;
local hn=`echo $1 | tr 'a-z.' 'A-Z_'`
local pr=`echo $PROJECT | tr 'a-z.' 'A-Z_'`
- echo "#ifndef __${pr}_${hn}__" >> $1;
- echo "#define __${pr}_${hn}__" >> $1;
- echo "#endif/*__${pr}_${hn}__*/" >> $1;
+ echo "#pragma once" >> $1;
}
if [ "$#" = "1" ]; then