[FFmpeg-trac] #7486(avutil:new): definition conflict of gmtime in time_internal.h

FFmpeg trac at avcodec.org
Thu Oct 11 15:29:51 EEST 2018


#7486: definition conflict of gmtime in time_internal.h
-------------------------------------+-------------------------------------
             Reporter:  cortexembed  |                     Type:  defect
               Status:  new          |                 Priority:  minor
            Component:  avutil       |                  Version:  git-
             Keywords:               |  master
  time_internal.h gmtime             |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 When compiling ffmpeg on an embedded platform without gmtime support,
 compiling ffmpeg fails at:

 ./libavutil/time_internal.h:26:26: Fehler: Statische Deklaration von
 »gmtime_r« folgt nicht-statischer Deklaration
  static inline struct tm *gmtime_r(const time_t* clock, struct tm *result)

 Removing the "static" on line 26 (and 48 also) to only "inline struct tm
 *gmtime_rgmtime_r(const time_t* clock, struct tm *result) solves the
 issue.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7486>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list