mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Use "#pragma once" to prevent repeated header file inclusion
This commit is contained in:
parent
58337e0e61
commit
b7fd2c2822
32 changed files with 31 additions and 166 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue