Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
34c945f2
Commit
34c945f2
authored
Aug 29, 2014
by
Ghislain MARY
Browse files
Fix compilation.
parent
b4963d9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
coreapi/call_log.c
View file @
34c945f2
...
...
@@ -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
...
...
coreapi/linphonecore.c
View file @
34c945f2
...
...
@@ -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
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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