Skip to content

Commit 7449116

Browse files
authored
Merge pull request #281 from laramiel/patch-3
Preprocessor fixes for xtl_config.hpp
2 parents 407954e + 2ebf99f commit 7449116

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/xtl/xtl_config.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@
2222
#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(XTL_NO_EXCEPTIONS)
2323
// Exceptions are enabled.
2424
#else
25+
#if !defined(XTL_NO_EXCEPTIONS)
2526
// Exceptions are disabled.
2627
#define XTL_NO_EXCEPTIONS
2728
#endif
29+
#endif
2830

2931
#if defined(XTL_NO_EXCEPTIONS)
32+
33+
#include <iostream>
34+
3035
#define XTL_THROW(_, msg) \
3136
{ \
3237
std::cerr << msg << std::endl; \

0 commit comments

Comments
 (0)