aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/mpg123/fix-dllexport.diff
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/mpg123/fix-dllexport.diff
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/mpg123/fix-dllexport.diff')
-rw-r--r--vcpkg/ports/mpg123/fix-dllexport.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/mpg123/fix-dllexport.diff b/vcpkg/ports/mpg123/fix-dllexport.diff
new file mode 100644
index 0000000..efd15ce
--- /dev/null
+++ b/vcpkg/ports/mpg123/fix-dllexport.diff
@@ -0,0 +1,16 @@
+diff --git a/src/libmpg123/mpg123lib_intern.h b/src/libmpg123/mpg123lib_intern.h
+index b46c419..7cd5504 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"
+