We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2b25e commit 92770b6Copy full SHA for 92770b6
sycl/include/sycl/detail/iostream_proxy.hpp
@@ -2,7 +2,13 @@
2
#include <istream>
3
#include <ostream>
4
5
+// Hotfix to account for the different namespaces in libstdc++ and libc++
6
+#ifdef _LIBCPP_BEGIN_NAMESPACE_STD
7
+_LIBCPP_BEGIN_NAMESPACE_STD
8
+#else
9
namespace std {
10
+#endif
11
+
12
#if defined(_MT) && defined(_DLL)
13
#define __SYCL_EXTERN_STREAM_ATTRS __declspec(dllimport)
14
#else
@@ -18,4 +24,9 @@ extern __SYCL_EXTERN_STREAM_ATTRS ostream cerr;
18
24
/// Linked to standard error (buffered)
19
25
extern __SYCL_EXTERN_STREAM_ATTRS ostream clog;
20
26
#undef __SYCL_EXTERN_STREAM_ATTRS
21
-} // namespace std
27
28
+#ifdef _LIBCPP_END_NAMESPACE_STD
29
+_LIBCPP_END_NAMESPACE_STD
30
31
+} // namespace std
32
0 commit comments