mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Fix some portability issues with the new C bindings
Build without GC is unbroken Fix #10403 Also building tests with Windows (assuming rest of Windows fixes) is unbroken.
This commit is contained in:
parent
19016c7b52
commit
c1e0769355
7 changed files with 25 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
|||
#include "attr-set.hh"
|
||||
#include "config.hh"
|
||||
#include "eval.hh"
|
||||
#include "gc/gc.h"
|
||||
#include "globals.hh"
|
||||
#include "value.hh"
|
||||
|
||||
|
@ -16,8 +15,9 @@
|
|||
#include <nlohmann/json.hpp>
|
||||
|
||||
#ifdef HAVE_BOEHMGC
|
||||
#define GC_INCLUDE_NEW 1
|
||||
#include "gc_cpp.h"
|
||||
# include "gc/gc.h"
|
||||
# define GC_INCLUDE_NEW 1
|
||||
# include "gc_cpp.h"
|
||||
#endif
|
||||
|
||||
void nix_set_string_return(nix_string_return * str, const char * c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue