conditionally include bits/functexcept.h

This commit is contained in:
Daniel Micay 2023-06-10 14:17:17 -04:00
parent 8f3281ed6a
commit 462c2c5293
1 changed files with 4 additions and 0 deletions

4
new.cc
View File

@ -1,4 +1,8 @@
// needed with libstdc++ but not libc++
#if __has_include(<bits/functexcept.h>)
#include <bits/functexcept.h>
#endif
#include <new>
#include "h_malloc.h"