From 4a514ea90991aaa6154387f6c6b501370680b8a1 Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Mon, 2 Nov 2026 00:09:51 +0100 Subject: [PATCH] fix(windows): a local named near collides with the Windows macro Windows headers define near and far as empty macros, so the production build failed there. Signed-off-by: Martin Vogel --- src/pipeline/pass_pkgmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pipeline/pass_pkgmap.c b/src/pipeline/pass_pkgmap.c index 6dd375ee1..97c677298 100644 --- a/src/pipeline/pass_pkgmap.c +++ b/src/pipeline/pass_pkgmap.c @@ -6243,10 +6243,10 @@ char *cbm_pipeline_c_generated_source(const cbm_pipeline_ctx_t *ctx, const char if (written <= 0 || (size_t)written >= sizeof(stem)) return NULL; char *directory = path_dirname(includer); - bool near = directory && cbm_repo_rel_join(directory, stem, beside, sizeof(beside)) && - cbm_pipeline_file_node(ctx->gbuf, ctx->project_name, beside); + bool found_beside = directory && cbm_repo_rel_join(directory, stem, beside, sizeof(beside)) && + cbm_pipeline_file_node(ctx->gbuf, ctx->project_name, beside); cbm_free(CBM_MEM_CLASS_SEMANTIC, directory); - if (near) + if (found_beside) return cbm_pipeline_fqn_compute(ctx->project_name, beside, "__file__"); written = snprintf(key, sizeof(key), "@cbm:incpath:%s", stem); if (written <= 0 || (size_t)written >= sizeof(key))