Skip to content
Snippets Groups Projects
Commit a604de4f authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avutil/time_internal: do not attempt to override *time_r() macros


Fixes build on somewhat odd setups with mingw
Fixes Ticket4075

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent fdf22f97
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ ...@@ -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) ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment