[libcxx-commits] [libcxx] 8808574 - [libc++] Add missing <stddef.h> include to <wchar.h>
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 25 16:31:44 PDT 2020
Author: Louis Dionne
Date: 2020-06-25T19:27:32-04:00
New Revision: 8808574e7438c8768b78ae7dd0f029385c6df01d
URL: https://github.com/llvm/llvm-project/commit/8808574e7438c8768b78ae7dd0f029385c6df01d
DIFF: https://github.com/llvm/llvm-project/commit/8808574e7438c8768b78ae7dd0f029385c6df01d.diff
LOG: [libc++] Add missing <stddef.h> include to <wchar.h>
It is needed because <wchar.h> uses size_t.
Added:
Modified:
libcxx/include/wchar.h
Removed:
################################################################################
diff --git a/libcxx/include/wchar.h b/libcxx/include/wchar.h
index 353c979d2072..b21a78968e23 100644
--- a/libcxx/include/wchar.h
+++ b/libcxx/include/wchar.h
@@ -106,6 +106,7 @@ size_t wcsrtombs(char* restrict dst, const wchar_t** restrict src, size_t len,
*/
#include <__config>
+#include <stddef.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
More information about the libcxx-commits
mailing list