Skip to content

Commit

Permalink
libmpg123: un-beak DLL builds of non-portable API (bug 374)
Browse files Browse the repository at this point in the history
git-svn-id: svn://scm.orgis.org/mpg123/trunk@5461 35dc7657-300d-0410-a2e5-dc2837fedb53
  • Loading branch information
thor committed Dec 9, 2024
1 parent 4b29cac commit eda5f60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
github PR 16)
- libout123: Use strtok_r() to avoid conflicts multithreaded contexts
(both sides should avoid plain strtok()!).
- libmpg123:
-- Un-break DLL builds that need I/O functions defined in libmpg123.c
(like mpg123_open(), bug 374).

1.32.9
------
Expand Down
5 changes: 4 additions & 1 deletion src/libmpg123/mpg123lib_intern.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

// Only portable API plays a role in the library itself, outside of lfs_wrap.c.
// Also, we need to ensure no suffix renaming for the primary implementations.
#define MPG123_PORTABLE_API
// But: The _definition_ of non-portable API needs to be present for those
// primary implementations being exported for DLL builds. Just the largefile
// renaming needs to be skipped!
#define MPG123_NO_LARGENAME
#define MPG123_ENUM_API
#include "mpg123.h"

Expand Down

0 comments on commit eda5f60

Please sign in to comment.