[clang] [clang] Include <stddef.h> for size_t (PR #139496)
Takuto Ikuta via cfe-commits
cfe-commits at lists.llvm.org
Sun May 11 22:36:58 PDT 2025
https://github.com/atetubou created https://github.com/llvm/llvm-project/pull/139496
This is to fix Clang module build in chromium.
>From d0e83133ff408270adb1e477f1b32e2e39a469c4 Mon Sep 17 00:00:00 2001
From: Takuto Ikuta <tikuta at google.com>
Date: Mon, 12 May 2025 14:36:35 +0900
Subject: [PATCH] [clang] Include <stddef.h> for size_t
This is to fix Clang module build in chromium.
---
clang/lib/Headers/mm_malloc.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/clang/lib/Headers/mm_malloc.h b/clang/lib/Headers/mm_malloc.h
index d32fe59416277..dec91fc3f720a 100644
--- a/clang/lib/Headers/mm_malloc.h
+++ b/clang/lib/Headers/mm_malloc.h
@@ -15,6 +15,8 @@
#ifdef _WIN32
#include <malloc.h>
#else
+#include <stddef.h>
+
#ifndef __cplusplus
extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size);
#else
More information about the cfe-commits
mailing list