mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 12:18:31 +00:00
Use libcxx abi v1
This commit is contained in:
parent
fbc4b03d4c
commit
f25fbbaaeb
3 changed files with 13 additions and 4 deletions
3
third_party/libcxx/new
vendored
3
third_party/libcxx/new
vendored
|
@ -10,6 +10,8 @@
|
|||
#ifndef _LIBCPP_NEW
|
||||
#define _LIBCPP_NEW
|
||||
|
||||
#pragma GCC diagnostic ignored "-Walloc-size-larger-than="
|
||||
|
||||
/*
|
||||
new synopsis
|
||||
|
||||
|
@ -264,6 +266,7 @@ _LIBCPP_HIDE_FROM_ABI void* __libcpp_operator_new(_Args... __args) {
|
|||
#if __has_builtin(__builtin_operator_new) && __has_builtin(__builtin_operator_delete)
|
||||
return __builtin_operator_new(__args...);
|
||||
#else
|
||||
|
||||
return ::operator new(__args...);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue