use pragma once in headers

This commit is contained in:
Antonio SJ Musumeci 2017-06-30 11:15:20 -04:00
parent d66774d3f3
commit a7b126cb48
118 changed files with 128 additions and 472 deletions

View file

@ -92,10 +92,8 @@ authors:
src/version.hpp:
$(eval VERSION := $(shell $(GIT) describe --always --tags --dirty))
@echo "#ifndef _VERSION_HPP" > src/version.hpp
@echo "#define _VERSION_HPP" >> src/version.hpp
@echo "#pragma once" > src/version.hpp
@echo "static const char MERGERFS_VERSION[] = \"$(VERSION)\";" >> src/version.hpp
@echo "#endif" >> src/version.hpp
obj/obj-stamp:
$(MKDIR) -p obj