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