about summary refs log tree commit diff
path: root/src/libexpr/common-opts.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-18T18·59-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-18T18·59-0400
commitb7fd2c28224a69476434d69b5d9da3d150c07226 (patch)
tree7bff185e6c7974605740718233fe052e1ce149cd /src/libexpr/common-opts.hh
parent58337e0e6122a97061dcf803954f72469f67afca (diff)
Use "#pragma once" to prevent repeated header file inclusion
Diffstat (limited to 'src/libexpr/common-opts.hh')
-rw-r--r--src/libexpr/common-opts.hh7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libexpr/common-opts.hh b/src/libexpr/common-opts.hh
index c28641e9015d..e2e3fe77171c 100644
--- a/src/libexpr/common-opts.hh
+++ b/src/libexpr/common-opts.hh
@@ -1,9 +1,7 @@
-#ifndef __COMMON_OPTS_H
-#define __COMMON_OPTS_H
+#pragma once
 
 #include "eval.hh"
 
-
 namespace nix {
 
 /* Some common option parsing between nix-env and nix-instantiate. */
@@ -17,6 +15,3 @@ bool parseSearchPathArg(const string & arg, Strings::iterator & i,
 Path lookupFileArg(EvalState & state, string s);
 
 }
-
-
-#endif /* !__COMMON_OPTS_H */