File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 3
3
#include < ostream>
4
4
5
5
namespace std {
6
- extern istream cin; // / Linked to standard input
7
- extern ostream cout; // / Linked to standard output
8
- extern ostream cerr; // / Linked to standard error (unbuffered)
9
- extern ostream clog; // / Linked to standard error (buffered)
6
+ #ifdef _WIN32
7
+ #define __SYCL_EXTERN_STREAM_ATTRS __declspec (dllimport)
8
+ #else
9
+ #define __SYCL_EXTERN_STREAM_ATTRS
10
+ #endif // _WIN32
11
+ // / Linked to standard input
12
+ extern __SYCL_EXTERN_STREAM_ATTRS istream cin;
13
+ // / Linked to standard output
14
+ extern __SYCL_EXTERN_STREAM_ATTRS ostream cout;
15
+ // / Linked to standard error (unbuffered)
16
+ extern __SYCL_EXTERN_STREAM_ATTRS ostream cerr;
17
+ // / Linked to standard error (buffered)
18
+ extern __SYCL_EXTERN_STREAM_ATTRS ostream clog;
19
+ #undef __SYCL_EXTERN_STREAM_ATTRS
10
20
} // namespace std
You can’t perform that action at this time.
0 commit comments