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; }