From eda5f609e5a0253dc4775dedb70991ec71c5bbdf Mon Sep 17 00:00:00 2001 From: thor Date: Mon, 9 Dec 2024 08:20:46 +0000 Subject: [PATCH] libmpg123: un-beak DLL builds of non-portable API (bug 374) git-svn-id: svn://scm.orgis.org/mpg123/trunk@5461 35dc7657-300d-0410-a2e5-dc2837fedb53 --- NEWS | 3 +++ src/libmpg123/mpg123lib_intern.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 18019b87..b4148dd2 100644 --- a/NEWS +++ b/NEWS @@ -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 ------ diff --git a/src/libmpg123/mpg123lib_intern.h b/src/libmpg123/mpg123lib_intern.h index b46c4197..7cd5504d 100644 --- a/src/libmpg123/mpg123lib_intern.h +++ b/src/libmpg123/mpg123lib_intern.h @@ -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"