From a0ebed5da14f43909c60bd4b17d14f33cf63b8af Mon Sep 17 00:00:00 2001 From: thor Date: Sat, 29 May 2010 23:19:05 +0000 Subject: [PATCH] Add missing _64 aliases for open functions. git-svn-id: svn://scm.orgis.org/mpg123/trunk@2710 35dc7657-300d-0410-a2e5-dc2837fedb53 --- src/libmpg123/lfs_alias.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/libmpg123/lfs_alias.c b/src/libmpg123/lfs_alias.c index b7ff950b..7229a290 100644 --- a/src/libmpg123/lfs_alias.c +++ b/src/libmpg123/lfs_alias.c @@ -36,7 +36,7 @@ if(/^\s*EXPORT\s+(\S+)\s+(mpg123_\S+)\((.*)\);\s*$/) my $type = $1; my $name = $2; my $args = $3; - next unless ($type =~ /off_t/ or $args =~ /off_t/); + next unless ($type =~ /off_t/ or $args =~ /off_t/ or ($name =~ /open/ and $name ne mpg123_open_feed)); $type =~ s/off_t/long/g; my @nargs = (); $args =~ s/off_t/long/g; @@ -57,6 +57,21 @@ EOT }' < mpg123.h.in */ +int attribute_align_arg ALIAS_NAME(mpg123_open)(mpg123_handle *mh, const char *path) +{ + return mpg123_open(mh, path); +} + +int attribute_align_arg ALIAS_NAME(mpg123_open_fd)(mpg123_handle *mh, int fd) +{ + return mpg123_open_fd(mh, fd); +} + +int attribute_align_arg ALIAS_NAME(mpg123_open_handle)(mpg123_handle *mh, void *iohandle) +{ + return mpg123_open_handle(mh, iohandle); +} + int attribute_align_arg ALIAS_NAME(mpg123_decode_frame)(mpg123_handle *mh, long *num, unsigned char **audio, size_t *bytes) { return mpg123_decode_frame(mh, num, audio, bytes);