Merge "libexpr/gc-alloc: fix compilation with !HAVE_BOEHMGC" into main

This commit is contained in:
Pierre Bourdon 2024-07-22 23:14:59 +00:00 committed by Gerrit Code Review
commit 73c013a5df

View file

@ -10,6 +10,8 @@
#include <string_view>
#include <vector>
#include "checked-arithmetic.hh"
#if HAVE_BOEHMGC
#include <functional> // std::less
#include <utility> // std::pair
@ -18,8 +20,6 @@
#include <gc/gc_allocator.h>
#include <gc/gc_cpp.h>
#include "checked-arithmetic.hh"
/// calloc, transparently GC-enabled.
#define LIX_GC_CALLOC(size) GC_MALLOC(size)