Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
f49468a2
Commit
f49468a2
authored
Oct 01, 2004
by
gbazin
Browse files
* src/libvlc.c, include/vlc_interface.h: don't open a win32 console when using a cygwin shell.
parent
b7ee5eb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/vlc_interface.h
View file @
f49468a2
...
...
@@ -118,10 +118,13 @@ VLC_EXPORT( void, intf_Destroy, ( intf_thread_t * ) );
*****************************************************************************/
#if defined( WIN32 ) && !defined( UNDER_CE )
# define CONSOLE_INTRO_MSG \
if( !getenv( "PWD" ) || !getenv( "PS1" ) )
/* detect cygwin shell */
\
{ \
AllocConsole(); \
freopen( "CONOUT$", "w", stdout ); \
freopen( "CONOUT$", "w", stderr ); \
freopen( "CONIN$", "r", stdin ); \
} \
msg_Info( p_intf, COPYRIGHT_MESSAGE ); \
msg_Info( p_intf, _("\nWarning: if you can't access the GUI " \
"anymore, open a dos command box, go to the " \
...
...
src/libvlc.c
View file @
f49468a2
...
...
@@ -2168,11 +2168,15 @@ static void Version( void )
static
void
ShowConsole
(
void
)
{
# ifndef UNDER_CE
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell */
AllocConsole
();
freopen
(
"CONOUT$"
,
"w"
,
stdout
);
freopen
(
"CONOUT$"
,
"w"
,
stderr
);
freopen
(
"CONIN$"
,
"r"
,
stdin
);
# endif
return
;
}
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment