refactor: name conflict

This commit is contained in:
2026-05-26 20:20:15 -06:00
parent 278973a006
commit 4a55069171
3 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
#ifndef ALLOCATOR_H
#define ALLOCATOR_H
#ifndef LAE_ALLOCATOR_H
#define LAE_ALLOCATOR_H
#include <stdlib.h>

View File

@@ -1,4 +1,4 @@
#include "allocator.h"
#include "lae_allocator.h"
#include <stdlib.h>
static void* stdlib_alloc(void* ctx, size_t size) {

View File

@@ -1,4 +1,4 @@
set_project("allocator")
set_project("lae_allocator")
set_version("1.0.0")
set_languages("c11")
@@ -31,10 +31,10 @@ option_end()
-- Library
-- =========================================================
target("allocator")
target("lae_allocator")
set_kind("static")
add_files("src/allocator.c")
add_files("src/lae_allocator.c")
add_headerfiles("include/*.h")
@@ -54,7 +54,7 @@ if has_config("example") then
add_files("src/main.c")
add_deps("allocator")
add_deps("lae_allocator")
end
-- =========================================================
@@ -69,7 +69,7 @@ if has_config("tests") then
add_files("test/test_allocator.c")
add_deps("allocator")
add_deps("lae_allocator")
add_packages("cmocka")