mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-31 23:46:48 +02:00
nix_api: fix missing includes in headers
Forward declaration doesn't work here, since we define classes that contain the objects
This commit is contained in:
parent
40f5d48d3c
commit
5d82d6e733
2 changed files with 5 additions and 9 deletions
|
@ -1,11 +1,8 @@
|
|||
#ifndef NIX_API_EXPR_INTERNAL_H
|
||||
#define NIX_API_EXPR_INTERNAL_H
|
||||
|
||||
// forward declaration
|
||||
namespace nix {
|
||||
class EvalState;
|
||||
class BindingsBuilder;
|
||||
}; // namespace nix
|
||||
#include "eval.hh"
|
||||
#include "attr-set.hh"
|
||||
|
||||
struct State {
|
||||
nix::EvalState state;
|
||||
|
|
|
@ -2,11 +2,10 @@
|
|||
#define NIX_API_UTIL_INTERNAL_H
|
||||
|
||||
#include <string>
|
||||
#include <optional>
|
||||
|
||||
// forward declaration
|
||||
namespace nix {
|
||||
class Error;
|
||||
};
|
||||
#include "error.hh"
|
||||
#include "nix_api_util.h"
|
||||
|
||||
struct nix_c_context {
|
||||
nix_err last_err_code = NIX_OK;
|
||||
|
|
Loading…
Reference in a new issue