diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-05-07 08:26:16 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-05-07 08:26:16 +0200 |
commit | 12a3499ca365756a77958d616423aca39a23234b (patch) | |
tree | 654c8d351a182be99959a3a36cced2ddeab6a63b /mpg123/include/mpg123_pre.h | |
parent | bb std::string (diff) | |
download | re3-12a3499ca365756a77958d616423aca39a23234b.tar re3-12a3499ca365756a77958d616423aca39a23234b.tar.gz re3-12a3499ca365756a77958d616423aca39a23234b.tar.bz2 re3-12a3499ca365756a77958d616423aca39a23234b.tar.lz re3-12a3499ca365756a77958d616423aca39a23234b.tar.xz re3-12a3499ca365756a77958d616423aca39a23234b.tar.zst re3-12a3499ca365756a77958d616423aca39a23234b.zip |
Diffstat (limited to '')
-rw-r--r-- | mpg123/include/mpg123_pre.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mpg123/include/mpg123_pre.h b/mpg123/include/mpg123_pre.h new file mode 100644 index 00000000..9c668075 --- /dev/null +++ b/mpg123/include/mpg123_pre.h @@ -0,0 +1,40 @@ +/* + mpg123_msvc: MPEG Audio Decoder library wrapper header for MS VC++ 2005 + + copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1 + initially written by Patrick Dehne and Thomas Orgis. +*/ +#ifndef MPG123_MSVC_H +#define MPG123_MSVC_H + +#include <tchar.h> +#include <stdlib.h> +#include <sys/types.h> + +typedef long ssize_t; +typedef __int32 int32_t; +typedef unsigned __int32 uint32_t; + +#define PRIiMAX "I64i" +typedef __int64 intmax_t; +// ftell returns long, _ftelli64 returns __int64 +// off_t is long, not __int64, use ftell +#define ftello ftell + +#define MPG123_NO_CONFIGURE +#include "mpg123.h" /* Yes, .h.in; we include the configure template! */ + +#ifdef __cplusplus +extern "C" { +#endif + + // Wrapper around mpg123_open that supports path names with unicode + // characters + EXPORT int mpg123_topen(mpg123_handle *fr, const _TCHAR *path); + EXPORT int mpg123_tclose(mpg123_handle *fr); + +#ifdef __cplusplus +} +#endif + +#endif |