diff options
Diffstat (limited to 'src/memory_allocator.zig')
-rw-r--r-- | src/memory_allocator.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/memory_allocator.zig b/src/memory_allocator.zig index c7e42ae87..6797661de 100644 --- a/src/memory_allocator.zig +++ b/src/memory_allocator.zig @@ -32,12 +32,6 @@ const c = struct { const Allocator = mem.Allocator; const assert = std.debug.assert; const CAllocator = struct { - comptime { - if (!@import("builtin").link_libc) { - @compileError("C allocator is only available when linking against libc"); - } - } - usingnamespace if (@hasDecl(c, "malloc_size")) struct { pub const supports_malloc_size = true; @@ -161,12 +155,6 @@ const c_allocator_vtable = Allocator.VTable{ // This is a memory allocator which always writes zero instead of undefined const ZAllocator = struct { - comptime { - if (!@import("builtin").link_libc) { - @compileError("C allocator is only available when linking against libc"); - } - } - usingnamespace if (@hasDecl(c, "malloc_size")) struct { pub const supports_malloc_size = true; |