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 9fee354 commit ec55677Copy full SHA for ec55677
compat/winansi.c
@@ -532,7 +532,20 @@ static HANDLE swap_osfhnd(int fd, HANDLE new_handle)
532
#ifdef DETECT_MSYS_TTY
533
534
#include <winternl.h>
535
+
536
+#if defined(_MSC_VER)
537
538
+typedef struct _OBJECT_NAME_INFORMATION
539
+{
540
+ UNICODE_STRING Name;
541
+ WCHAR NameBuffer[0];
542
+} OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION;
543
544
+#define ObjectNameInformation 1
545
546
+#else
547
#include <ntstatus.h>
548
+#endif
549
550
static void detect_msys_tty(int fd)
551
{
0 commit comments