Skip to content

Commit

Permalink
tests: Fix PUGIXML_COMPACT build on some platforms
Browse files Browse the repository at this point in the history
We need bad_alloc that lives in <new>, not <exception>.
  • Loading branch information
zeux committed Apr 4, 2018
1 parent 474a4a3 commit 8436f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <setjmp.h>

#ifndef PUGIXML_NO_EXCEPTIONS
#include <exception>
#include <new>
#endif

struct test_runner
Expand Down

0 comments on commit 8436f2a

Please sign in to comment.