[libcxx-commits] [libcxx] e4aad51 - [libc++][NFC] Add missing include to ext/__hash

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 25 08:49:20 PST 2022


Author: Louis Dionne
Date: 2022-11-25T11:49:01-05:00
New Revision: e4aad511e6f85499dcce59946eafb0a771a9be90

URL: https://github.com/llvm/llvm-project/commit/e4aad511e6f85499dcce59946eafb0a771a9be90
DIFF: https://github.com/llvm/llvm-project/commit/e4aad511e6f85499dcce59946eafb0a771a9be90.diff

LOG: [libc++][NFC] Add missing include to ext/__hash

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.

Differential Revision: https://reviews.llvm.org/D138716

Added: 
    

Modified: 
    libcxx/include/ext/__hash

Removed: 
    


################################################################################
diff  --git a/libcxx/include/ext/__hash b/libcxx/include/ext/__hash
index 0e6c2cc05b52..880d0eebef49 100644
--- a/libcxx/include/ext/__hash
+++ b/libcxx/include/ext/__hash
@@ -14,6 +14,7 @@
 
 #include <__config>
 #include <cstring>
+#include <stddef.h>
 #include <string>
 
 namespace __gnu_cxx {


        


More information about the libcxx-commits mailing list