[libcxx-commits] [PATCH] D138716: [libc++][NFC] Add missing include to ext/__hash

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 25 07:26:53 PST 2022


ldionne created this revision.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Note that we use <stddef.h> instead of <cstddef> because we're
using size_t (not std::size_t) and we're outside of namespace std.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138716

Files:
  libcxx/include/ext/__hash


Index: libcxx/include/ext/__hash
===================================================================
--- libcxx/include/ext/__hash
+++ libcxx/include/ext/__hash
@@ -14,6 +14,7 @@
 
 #include <__config>
 #include <cstring>
+#include <stddef.h>
 #include <string>
 
 namespace __gnu_cxx {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138716.477961.patch
Type: text/x-patch
Size: 287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221125/510aaf22/attachment.bin>


More information about the libcxx-commits mailing list