conditionally include bits/functexcept.h

pull/217/head
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> #include <bits/functexcept.h>
#endif
#include <new> #include <new>
#include "h_malloc.h" #include "h_malloc.h"