forked from FFmpeg/FFmpeg
avutil/time_internal: do not attempt to override *time_r() macros
Fixes build on somewhat odd setups with mingw Fixes Ticket4075 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fdf22f973d
commit
a604de4fd8
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if !HAVE_GMTIME_R
|
#if !HAVE_GMTIME_R && !defined(gmtime_r)
|
||||||
static inline struct tm *gmtime_r(const time_t* clock, struct tm *result)
|
static inline struct tm *gmtime_r(const time_t* clock, struct tm *result)
|
||||||
{
|
{
|
||||||
struct tm *ptr = gmtime(clock);
|
struct tm *ptr = gmtime(clock);
|
||||||
|
@ -33,7 +33,7 @@ static inline struct tm *gmtime_r(const time_t* clock, struct tm *result)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !HAVE_LOCALTIME_R
|
#if !HAVE_LOCALTIME_R && !defined(localtime_r)
|
||||||
static inline struct tm *localtime_r(const time_t* clock, struct tm *result)
|
static inline struct tm *localtime_r(const time_t* clock, struct tm *result)
|
||||||
{
|
{
|
||||||
struct tm *ptr = localtime(clock);
|
struct tm *ptr = localtime(clock);
|
||||||
|
|
Loading…
Add table
Reference in a new issue