Files
MINGW-packages/mingw-w64-libmodplug/010-mingw.patch
Rosen Penev c7012ec2de libmodplug: fix package
Remove faulty pkgconfig patch that made sndfile.h available without a
prefix. This breaks compilation for packages that use both libsndfile
and libmodplug like MPD.

Added small patch to fix compilation with MinGW. lstrcpyn is defined
to the W variant in MinGW's headers, which breaks compilation. Just
make it explicit.
2021-05-26 21:27:42 -07:00

12 lines
484 B
Diff

--- a/src/libmodplug/sndfile.h
+++ b/src/libmodplug/sndfile.h
@@ -613,7 +613,7 @@ public:
UINT GetMaxPosition() const;
void SetCurrentPos(UINT nPos);
void SetCurrentOrder(UINT nOrder);
- void GetTitle(LPSTR s) const { lstrcpyn(s,m_szNames[0],32); }
+ void GetTitle(LPSTR s) const { lstrcpynA(s,m_szNames[0],32); }
LPCSTR GetTitle() const { return m_szNames[0]; }
UINT GetSampleName(UINT nSample,LPSTR s=NULL) const;
UINT GetInstrumentName(UINT nInstr,LPSTR s=NULL) const;