forked from sezero/quakespasm
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
184e8c0
commit e41b426
Showing
2 changed files
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e41b426
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just define MPG123_NO_LARGENAME in snd_mpg123.c before including mpg123.h and be done with it, instead?
e41b426
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might also work, but I'm not sure of the implications of calling mpg123 functions with no suffix (which might expect 32-bit offsets even on 64-bit systems) from code that defines _FILE_OFFSET_BITS=64 (making off_t 64-bit), so I figured I'd only define that macro if absolutely necessary. This whole 64-bit offset situation is pretty messy, though.
e41b426
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using our own callbacks for file i/o, therefore I think file offset bits with mpg123 is pointless here. So I went ahead and defined MPG123_NO_LARGENAME in snd_mpg123.c in qs.
And yes, the 64 bit offset is a real mess in mpg123.