diff --git a/python/build/libs.py b/python/build/libs.py index 85357e5dc..8a049045c 100644 --- a/python/build/libs.py +++ b/python/build/libs.py @@ -111,6 +111,7 @@ libmodplug = AutotoolsProject( [ '--disable-shared', '--enable-static', ], + patches='src/lib/modplug/patches', ) libopenmpt = AutotoolsProject( diff --git a/src/lib/modplug/patches/no_register b/src/lib/modplug/patches/no_register new file mode 100644 index 000000000..e60ae1914 --- /dev/null +++ b/src/lib/modplug/patches/no_register @@ -0,0 +1,22 @@ +Index: libmodplug-0.8.9.0/src/fastmix.cpp +=================================================================== +--- libmodplug-0.8.9.0.orig/src/fastmix.cpp ++++ libmodplug-0.8.9.0/src/fastmix.cpp +@@ -288,7 +288,7 @@ CzWINDOWEDFIR sfir; + // MIXING MACROS + // ---------------------------------------------------------------------------- + #define SNDMIX_BEGINSAMPLELOOP8\ +- register MODCHANNEL * const pChn = pChannel;\ ++ MODCHANNEL * const pChn = pChannel;\ + nPos = pChn->nPosLo;\ + const signed char *p = (signed char *)(pChn->pCurrentSample+pChn->nPos);\ + if (pChn->dwFlags & CHN_STEREO) p += pChn->nPos;\ +@@ -296,7 +296,7 @@ CzWINDOWEDFIR sfir; + do { + + #define SNDMIX_BEGINSAMPLELOOP16\ +- register MODCHANNEL * const pChn = pChannel;\ ++ MODCHANNEL * const pChn = pChannel;\ + nPos = pChn->nPosLo;\ + const signed short *p = (signed short *)(pChn->pCurrentSample+(pChn->nPos*2));\ + if (pChn->dwFlags & CHN_STEREO) p += pChn->nPos;\ diff --git a/src/lib/modplug/patches/series b/src/lib/modplug/patches/series new file mode 100644 index 000000000..4594bd91f --- /dev/null +++ b/src/lib/modplug/patches/series @@ -0,0 +1 @@ +no_register