We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 740039e commit c5ba8f2Copy full SHA for c5ba8f2
1 file changed
cuda_core/cuda/core/_cpp/resource_handles.cpp
@@ -12,9 +12,7 @@
12
#include <unordered_map>
13
#include <vector>
14
15
-#ifdef _WIN32
16
-#include <io.h>
17
-#else
+#ifndef _WIN32
18
#include <unistd.h>
19
#endif
20
@@ -1130,9 +1128,7 @@ FileDescriptorHandle create_fd_handle(int fd) {
1130
1128
return FileDescriptorHandle(
1131
1129
new int(fd),
1132
[](const int* p) {
1133
1134
- ::_close(*p);
1135
1136
::close(*p);
1137
1138
delete p;
0 commit comments