Skip to content

Commit bff3fea

Browse files
authored
[emissary IO] fix stderr issue (#774)
1 parent eb20553 commit bff3fea

File tree

1 file changed

+0
-22
lines changed
  • clang/lib/Headers/llvm_libc_wrappers

1 file changed

+0
-22
lines changed

clang/lib/Headers/llvm_libc_wrappers/stdio.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,6 @@
2424
// Some headers provide these as macros. Temporarily undefine them so they do
2525
// not conflict with any definitions for the GPU.
2626

27-
#pragma push_macro("stdout")
28-
#pragma push_macro("stdin")
29-
#pragma push_macro("stderr")
30-
31-
#undef stdout
32-
#undef stderr
33-
#undef stdin
34-
35-
#pragma omp begin declare target
36-
37-
__LIBC_ATTRS extern FILE *stderr;
38-
__LIBC_ATTRS extern FILE *stdin;
39-
__LIBC_ATTRS extern FILE *stdout;
40-
41-
#pragma omp end declare target
42-
43-
// Restore the original macros when compiling on the host.
44-
#if !defined(__NVPTX__) && !defined(__AMDGPU__)
45-
#pragma pop_macro("stderr")
46-
#pragma pop_macro("stdin")
47-
#pragma pop_macro("stdout")
48-
#endif
4927

5028
#undef __LIBC_ATTRS
5129

0 commit comments

Comments
 (0)