diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-07-18 10:19:48 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-07-18 10:31:50 -0300 |
commit | e8fd8fec236062e94e9486c64e482b780988f9bf (patch) | |
tree | 8a2682f3bcb0f40af1ca0ed3680c85ececd804da /libkmod/libkmod-index.h | |
parent | 4e7f0f204bc82ce749cad6613b066993f530cbe6 (diff) | |
download | kmod-e8fd8fec236062e94e9486c64e482b780988f9bf.tar.gz kmod-e8fd8fec236062e94e9486c64e482b780988f9bf.tar.bz2 kmod-e8fd8fec236062e94e9486c64e482b780988f9bf.zip |
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.
Diffstat (limited to 'libkmod/libkmod-index.h')
-rw-r--r-- | libkmod/libkmod-index.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libkmod/libkmod-index.h b/libkmod/libkmod-index.h index dd3a762..6eb77b9 100644 --- a/libkmod/libkmod-index.h +++ b/libkmod/libkmod-index.h @@ -18,8 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _LIBKMOD_INDEX_H -#define _LIBKMOD_INDEX_H +#pragma once #include <stdint.h> @@ -127,5 +126,3 @@ void index_mm_close(struct index_mm *index); char *index_mm_search(struct index_mm *idx, const char *key); struct index_value *index_mm_searchwild(struct index_mm *idx, const char *key); void index_mm_dump(struct index_mm *idx, int fd, const char *prefix); - -#endif |