Opened 6 years ago
Closed 6 years ago
#7486 closed defect (needs_more_info)
definition conflict of gmtime in time_internal.h
Reported by: | cortexembed | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avutil |
Version: | git-master | Keywords: | gmtime |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
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.
Change History (3)
comment:2 by , 6 years ago
Keywords: | time_internal.h removed |
---|---|
Priority: | minor → normal |
Please either explain how I can reproduce the issue you see (this includes at least the configure line you used and information about your toolchain) or send a patch - made with git format-patch
- to the FFmpeg development mailing list, both patches and patch suggestions are ignored here.
comment:3 by , 6 years ago
Resolution: | → needs_more_info |
---|---|
Status: | new → closed |
I also stronly recommend to move function bodies from libavutil/time._internal.h into libavutil/time.c
Here is a possbile patch: