14 #ifndef MPG123_COMPAT_H 15 #define MPG123_COMPAT_H 21 #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L 40 #ifdef HAVE_SYS_SIGNAL_H 41 #include <sys/signal.h> 51 #ifdef HAVE_SYS_TYPES_H 54 #ifdef HAVE_INTTYPES_H 66 #define SIZE_MAX ((size_t)-1) 69 #define SSIZE_MAX ((size_t)-1/2) 72 #define ULONG_MAX ((unsigned long)-1) 86 #ifdef HAVE_SYS_TIME_H 90 #ifdef HAVE_SYS_SELECT_H 91 #include <sys/select.h> 99 #define atobigint atoll 101 #define atobigint atol 107 #if defined(_MSC_VER) && !defined(MPG123_DEF_SSIZE_T) 108 #define MPG123_DEF_SSIZE_T 116 #ifndef HAVE_STRERROR 127 #if (defined SIZEOF_OFF_T) && (SIZEOF_OFF_T > SIZEOF_LONG) && (defined PRIiMAX) 128 # define OFF_P PRIiMAX 135 #if (defined SIZEOF_SIZE_T) && (SIZEOF_SIZE_T > SIZEOF_LONG) && (defined PRIuMAX) 136 # define SIZE_P PRIuMAX 143 #if (defined SIZEOF_SSIZE_T) && (SIZEOF_SSIZE_T > SIZEOF_LONG) && (defined PRIiMAX) 144 # define SSIZE_P PRIuMAX 147 # define SSIZE_P "li" 180 #ifdef WANT_WIN32_UNICODE 192 int win32_wide_utf8(
const wchar_t *
const wptr,
char **mbptr,
size_t * buflen);
206 int win32_utf8_wide(
const char *
const mbptr,
wchar_t **wptr,
size_t *buflen);
285 #define normal mpg123_normal 290 #if (!defined(WIN32) || defined (__CYGWIN__)) && defined(HAVE_SIGNAL_H) int win32_utf8_wide(const char *const mbptr, wchar_t **wptr, size_t *buflen)
FILE * compat_fopen(const char *filename, const char *mode)
int compat_open(const char *filename, int flags)
int compat_isdir(const char *path)
char * compat_getenv(const char *name)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
size_t unintr_read(int fd, void *buffer, size_t bytes)
const char * strerror(int err)
char * compat_nextdir(struct compat_dir *)
FILE * compat_fdopen(int fd, const char *mode)
char * compat_catpath(const char *prefix, const char *path)
static unsigned char bytes[4]
__MINGW_EXTENSION typedef long long intmax_t
int compat_close(int infd)
void compat_dirclose(struct compat_dir *)
char * compat_nextfile(struct compat_dir *)
__MINGW_EXTENSION typedef unsigned long long uintmax_t
struct compat_dir * compat_diropen(char *path)
int compat_fclose(FILE *stream)
__kernel_ptrdiff_t ptrdiff_t
size_t unintr_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)
char * compat_strdup(const char *s)
void * safe_realloc(void *ptr, size_t size)
UINT(* handler)(MSIPACKAGE *)
int win32_wide_utf8(const wchar_t *const wptr, char **mbptr, size_t *buflen)
size_t unintr_write(int fd, void const *buffer, size_t bytes)
void(*)() catchsignal(int signum, void(*handler)())