]> git.ipfire.org Git - thirdparty/kmod.git/commit
Use #pragma once instead of #ifndef
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 18 Jul 2012 13:19:48 +0000 (10:19 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 18 Jul 2012 13:31:50 +0000 (10:31 -0300)
commite8fd8fec236062e94e9486c64e482b780988f9bf
tree8a2682f3bcb0f40af1ca0ed3680c85ececd804da
parent4e7f0f204bc82ce749cad6613b066993f530cbe6
Use #pragma once instead of #ifndef

Only the public header maintains #ifndef in the header, together with
pragma. The other ones contain only pragma.

As reported by Shawn Landden on systemd mailing list this is compatible
with all major compilers and gcc has this since version 3.3.
libkmod/libkmod-array.h
libkmod/libkmod-hash.h
libkmod/libkmod-index.h
libkmod/libkmod-private.h
libkmod/libkmod-util.h
libkmod/libkmod.h
libkmod/macro.h
testsuite/mkdir.h
testsuite/stripped-module.h
testsuite/testsuite.h
tools/kmod.h