]> git.sesse.net Git - vlc/commitdiff
intf-add: list CLI on win32 regardless of stdin
authorPierre Ynard <linkfanel@yahoo.fr>
Tue, 21 Jun 2011 23:01:46 +0000 (01:01 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Tue, 21 Jun 2011 23:01:46 +0000 (01:01 +0200)
Win32 spawns its own console so this is irrelevant

src/interface/interface.c

index b22a8fec3baad17c98f3591bb5f74685e63e0d78..5fc7c91b0489fe5489649b35adb5b2a74f5c29ea 100644 (file)
@@ -85,7 +85,9 @@ int intf_Create( vlc_object_t *p_this, const char *chain )
                 VLC_VAR_HASCHOICE | VLC_VAR_ISCOMMAND );
     text.psz_string = _("Add Interface");
     var_Change( p_intf, "intf-add", VLC_VAR_SETTEXT, &text, NULL );
+#if !defined(WIN32) && defined(HAVE_ISATTY)
     if( isatty( 0 ) )
+#endif
     {
         val.psz_string = (char *)"rc";
         text.psz_string = (char *)_("Console");