xiph / vorbis-tools

Command-line tools for creating and playing Ogg Vorbis files.
GNU General Public License v2.0
75 stars 28 forks source link

include utf8.h for utf8_decode() #33

Closed janstary closed 1 year ago

janstary commented 2 years ago

ogginfo/codec_skeleton.c calls utf8_decode() but does not include thf8.h, resulting in the following compilation error on macOS 12.3.1:

codec_skeleton.c:118:9: error: implicit declaration of function 'utf8_decode' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (utf8_decode(header, &decoded) < 0) {
        ^