Merge pull request #11558 from DeterminateSystems/fix-no-gc-build

Fix build without GC
This commit is contained in:
Eelco Dolstra 2024-09-20 16:02:08 +02:00 committed by GitHub
commit 68ba6ff470
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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)

View file

@ -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
{}; {};