File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Original file line number Diff line number Diff line change @@ -334,13 +334,16 @@ AC_LANG_PUSH([C++])
334
334
# Can we use operator delete without exception handling specifier? (clang warns on this!)
335
335
CXXFLAGS="-Werror"
336
336
AC_MSG_CHECKING ( [ whether CXX supports operator delete without exception handling specifier] )
337
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ #include <new>\nvoid operator delete(void* mem);] ) ] , [ AC_MSG_RESULT ( [ yes] ) ] , [ AC_MSG_RESULT ( [ no] ) ; UT_DELETE_MUST_HAVE_EXCEPTION_SPECIFIER="yes"] )
337
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <new>
338
+ void operator delete(void* mem);] ] ) ] , [ AC_MSG_RESULT ( [ yes] ) ] , [ AC_MSG_RESULT ( [ no] ) ; UT_DELETE_MUST_HAVE_EXCEPTION_SPECIFIER="yes"] )
338
339
CXXFLAGS="$saved_cxxflags"
339
340
340
341
# Can we use operator new with exception specifier (g++4.7 on MacOSX is broken here)
341
342
CXXFLAGS="-Werror"
342
343
AC_MSG_CHECKING ( [ whether CXX supports operator new with exception handling specifier] )
343
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ #include <new>\nvoid* operator new(size_t size) throw(std::bad_alloc);;] ) ] , [ AC_MSG_RESULT ( [ yes] ) ] , [ AC_MSG_RESULT ( [ no] ) ; UT_NEW_CANT_HAVE_EXCEPTION_SPECIFIER="yes"] )
344
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <cstdint>
345
+ #include <new>
346
+ void* operator new(std::size_t size) throw(std::bad_alloc);;] ] ) ] , [ AC_MSG_RESULT ( [ yes] ) ] , [ AC_MSG_RESULT ( [ no] ) ; UT_NEW_CANT_HAVE_EXCEPTION_SPECIFIER="yes"] )
344
347
CXXFLAGS="$saved_cxxflags"
345
348
346
349
# Flag -Wno-missing-exception-spec
You can’t perform that action at this time.
0 commit comments