mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
win32 tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2767 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -221,13 +221,22 @@ SWITCH_DECLARE(void) switch_console_loop(void)
|
||||
if (activity) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, SWITCH_LOG_CONSOLE, "\nfreeswitch@%s> ", hostname);
|
||||
}
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
//Microsofts macros don't pass their own compilers warnings.
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4127 4389)
|
||||
#endif
|
||||
|
||||
FD_ZERO(&rfds);
|
||||
FD_ZERO(&efds);
|
||||
FD_SET(fileno(stdin), &rfds);
|
||||
FD_SET(fileno(stdin), &efds);
|
||||
activity = select(fileno(stdin)+1, &rfds, NULL, &efds, &tv);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
if (activity == 0) {
|
||||
fflush(stdout);
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user