aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2024-07-23 00:50:09 +0200
committerPierre Bourdon <delroth@gmail.com>2024-07-23 00:50:09 +0200
commite76245f8e93ab100c601cdc7c2735c92fff04247 (patch)
tree50fd687561d891fe30cad1210c482b978391893a /src/libexpr
parent2d4aca25468184fdd2f6be034ab9aa9c28d2839e (diff)
libexpr/gc-alloc: fix compilation with !HAVE_BOEHMGC
Fixes: 72ee25b4025257fdaab7b8e8d5d1ccc83858fdab Change-Id: Ib59386af1415a8ed4b53af24ec22a4ffa5e5877d
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/gc-alloc.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/gc-alloc.hh b/src/libexpr/gc-alloc.hh
index 04ac28ea8..fc034045f 100644
--- a/src/libexpr/gc-alloc.hh
+++ b/src/libexpr/gc-alloc.hh
@@ -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)