From 84e4b38be33e6b843b52ad95691bc88c663987e9 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Sun, 18 Aug 2013 17:26:13 -0500 Subject: [PATCH] FS-5690 --resolve with bizarre workaround --- libs/spandsp/src/msvc/spandsp.h | 3 +++ src/switch_console.c | 2 ++ src/switch_scheduler.c | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/spandsp/src/msvc/spandsp.h b/libs/spandsp/src/msvc/spandsp.h index fbdfac8e49..ec0b629d27 100644 --- a/libs/spandsp/src/msvc/spandsp.h +++ b/libs/spandsp/src/msvc/spandsp.h @@ -48,6 +48,9 @@ #include #include +#if !defined(__cplusplus) +#include +#endif #include #include #include diff --git a/src/switch_console.c b/src/switch_console.c index b2c003a6c6..eea6d5510b 100644 --- a/src/switch_console.c +++ b/src/switch_console.c @@ -33,7 +33,9 @@ #include #include #include +#ifndef _MSC_VER #include +#endif #define CMD_BUFLEN 1024 #ifdef SWITCH_HAVE_LIBEDIT diff --git a/src/switch_scheduler.c b/src/switch_scheduler.c index b71821e298..8e0a7d0963 100644 --- a/src/switch_scheduler.c +++ b/src/switch_scheduler.c @@ -201,7 +201,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime, switch_assert(func); if (task_runtime < now) { - container->task.repeat = task_runtime; + container->task.repeat = (uint32_t)task_runtime; task_runtime += now; }