mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
time_internal: Do not attempt to override *time_r() macros
In case these already are defined as macros, we shouldn't try to redefine them. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
c93e92f2b2
commit
9485cce6d5
@ -22,7 +22,7 @@
|
||||
#include <time.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)
|
||||
{
|
||||
struct tm *ptr = gmtime(clock);
|
||||
@ -33,7 +33,7 @@ static inline struct tm *gmtime_r(const time_t* clock, struct tm *result)
|
||||
}
|
||||
#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)
|
||||
{
|
||||
struct tm *ptr = localtime(clock);
|
||||
|
Loading…
Reference in New Issue
Block a user