summaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 21e9e6a..d580a03 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -1,12 +1,15 @@
#include "test.hpp"
#include "allocator.hpp"
-#include <exception>
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <assert.h>
+#ifndef PUGIXML_NO_EXCEPTIONS
+# include <exception>
+#endif
+
#ifdef _WIN32_WCE
# undef DebugBreak
# include <windows.h>