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.
12 lines
484 B
Diff
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;
|