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 370bf48 commit 362286aCopy full SHA for 362286a
compat/winansi.c
@@ -544,7 +544,20 @@ static HANDLE swap_osfhnd(int fd, HANDLE new_handle)
544
#ifdef DETECT_MSYS_TTY
545
546
#include <winternl.h>
547
+
548
+#if defined(_MSC_VER)
549
550
+typedef struct _OBJECT_NAME_INFORMATION
551
+{
552
+ UNICODE_STRING Name;
553
+ WCHAR NameBuffer[0];
554
+} OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION;
555
556
+#define ObjectNameInformation 1
557
558
+#else
559
#include <ntstatus.h>
560
+#endif
561
562
static void detect_msys_tty(int fd)
563
{
0 commit comments