fdkaac/src/compat.h

38 lines
841 B
C
Raw Normal View History

2013-01-04 17:10:05 +01:00
/*
* Copyright (C) 2013 nu774
* For conditions of distribution and use, see copyright notice in COPYING
*/
#ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_FSEEKO
2013-02-20 02:29:12 +01:00
# if HAVE_FSEEKO64
# define fseeko fseeko64
# define ftello ftello64
# elif _MSC_VER >= 1400
2013-01-04 17:10:05 +01:00
# define fseeko _fseeki64
# define ftello _ftelli64
# else
# define fseeko fseek
# define ftello ftell
# endif
#endif
int64_t aacenc_timer(void);
FILE *aacenc_fopen(const char *name, const char *mode);
#ifdef _WIN32
2013-01-04 17:10:05 +01:00
void aacenc_getmainargs(int *argc, char ***argv);
#else
#define aacenc_getmainargs(argc, argv) (void)0
#endif
2013-01-04 17:10:05 +01:00
char *aacenc_to_utf8(const char *s);
#ifdef _WIN32
2013-01-04 17:10:05 +01:00
int aacenc_fprintf(FILE *fp, const char *fmt, ...);
#else
#define aacenc_fprintf fprintf
#endif
const char *aacenc_basename(const char *path);
int aacenc_seekable(FILE *fp);
2013-01-04 17:10:05 +01:00
#endif