[FFmpeg-cvslog] configure: improve the checks for gmtime_r and localtime_r

James Almer git at videolan.org
Sat Jun 6 17:08:40 CEST 2015


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Jun  6 01:55:06 2015 -0300| [1b4dd59e5fbdebb8d9f13ad2dbdaa0179d0cce57] | committer: James Almer

configure: improve the checks for gmtime_r and localtime_r

They are inlined wrapper functions inside the time.h header on MinGW-w64, so
neither check_func() or check_func_headers() work with them.

Reviewed-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1b4dd59e5fbdebb8d9f13ad2dbdaa0179d0cce57
---

 configure |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index e29fe91..8168edc 100755
--- a/configure
+++ b/configure
@@ -4943,6 +4943,8 @@ check_builtin machine_rw_barrier mbarrier.h "__machine_rw_barrier()"
 check_builtin MemoryBarrier windows.h "MemoryBarrier()"
 check_builtin sarestart signal.h "SA_RESTART"
 check_builtin sync_val_compare_and_swap "" "int *ptr; int oldval, newval; __sync_val_compare_and_swap(ptr, oldval, newval)"
+check_builtin gmtime_r time.h "time_t *time; struct tm *tm; gmtime_r(time, tm)"
+check_builtin localtime_r time.h "time_t *time; struct tm *tm; localtime_r(time, tm)"
 
 check_func_headers malloc.h _aligned_malloc     && enable aligned_malloc
 check_func  ${malloc_prefix}memalign            && enable memalign
@@ -4956,9 +4958,7 @@ check_func  gethrtime
 check_func  getopt
 check_func  getrusage
 check_func  gettimeofday
-check_func  gmtime_r
 check_func  isatty
-check_func  localtime_r
 check_func  mach_absolute_time
 check_func  mkstemp
 check_func  mmap



More information about the ffmpeg-cvslog mailing list