diff --git a/coreapi/call_log.c b/coreapi/call_log.c index 811f8c437..a1bd835ce 100644 --- a/coreapi/call_log.c +++ b/coreapi/call_log.c @@ -26,6 +26,21 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Internal functions * ******************************************************************************/ +/*prevent a gcc bug with %c*/ +static size_t my_strftime(char *s, size_t max, const char *fmt, const struct tm *tm){ + return strftime(s, max, fmt, tm); +} + +static time_t string_to_time(const char *date){ +#ifndef WIN32 + struct tm tmtime={0}; + strptime(date,"%c",&tmtime); + return mktime(&tmtime); +#else + return 0; +#endif +} + static void set_call_log_date(LinphoneCallLog *cl, time_t start_time){ struct tm loctime; #ifdef WIN32 diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 985b23d48..d88fc6974 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -102,21 +102,6 @@ int lc_callback_obj_invoke(LCCallbackObj *obj, LinphoneCore *lc){ } -/*prevent a gcc bug with %c*/ -static size_t my_strftime(char *s, size_t max, const char *fmt, const struct tm *tm){ - return strftime(s, max, fmt, tm); -} - -static time_t string_to_time(const char *date){ -#ifndef WIN32 - struct tm tmtime={0}; - strptime(date,"%c",&tmtime); - return mktime(&tmtime); -#else - return 0; -#endif -} - /** * Returns TRUE if the LinphoneCall asked to autoanswer *