X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fcompat_posix.c;h=741c87fa8091266c6b4cf122d52354dd0d87ac2f;hb=374ae78b970a9249d047f0958472114b16523e23;hp=e101ff70fa3fdfccab558d1e47e5fc167edf869e;hpb=5888fddccf0882e7738df13a918f296522034a77;p=fdkaac.git diff --git a/src/compat_posix.c b/src/compat_posix.c index e101ff7..741c87f 100644 --- a/src/compat_posix.c +++ b/src/compat_posix.c @@ -32,20 +32,9 @@ FILE *aacenc_fopen(const char *name, const char *mode) return fp; } -void aacenc_getmainargs(int *argc, char ***argv) +int aacenc_seekable(FILE *fp) { - return; -} - -int aacenc_fprintf(FILE *fp, const char *fmt, ...) -{ - va_list ap; - int cnt; - - va_start(ap, fmt); - cnt = vfprintf(fp, fmt, ap); - va_end(ap); - return cnt; + return fseek(fp, 0, SEEK_CUR) == 0; } /* @@ -70,8 +59,8 @@ char *aacenc_to_utf8(const char *s) #include #include -#if HAVE_LOCALCHARSET_H -#include +#if HAVE_LIBCHARSET_H +#include #elif HAVE_LANGINFO_H #include static const char *locale_charset(void)