mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 10:46:15 +02:00
Merge pull request #11558 from DeterminateSystems/fix-no-gc-build
Fix build without GC
This commit is contained in:
commit
68ba6ff470
2 changed files with 2 additions and 3 deletions
|
@ -16,8 +16,6 @@
|
||||||
|
|
||||||
#if HAVE_BOEHMGC
|
#if HAVE_BOEHMGC
|
||||||
# include <mutex>
|
# include <mutex>
|
||||||
# define GC_INCLUDE_NEW 1
|
|
||||||
# include "gc_cpp.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
nix_err nix_libexpr_init(nix_c_context * context)
|
nix_err nix_libexpr_init(nix_c_context * context)
|
||||||
|
|
|
@ -23,7 +23,8 @@ template<typename T>
|
||||||
using gc_allocator = std::allocator<T>;
|
using gc_allocator = std::allocator<T>;
|
||||||
|
|
||||||
# define GC_MALLOC_ATOMIC std::malloc
|
# define GC_MALLOC_ATOMIC std::malloc
|
||||||
# define GC_STRDUP std::strdup
|
# define GC_STRDUP strdup
|
||||||
|
|
||||||
struct gc
|
struct gc
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue