diff options
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | gst/festival/gstfestival.c | 4 | ||||
-rw-r--r-- | gst/modplug/libmodplug/load_it.cpp | 3 | ||||
-rw-r--r-- | gst/modplug/libmodplug/sndfile.cpp | 2 | ||||
-rw-r--r-- | gst/modplug/libmodplug/sndfile.h | 2 | ||||
-rw-r--r-- | gst/modplug/libmodplug/stdafx.h | 2 | ||||
-rw-r--r-- | gst/sdp/gstsdpdemux.c | 3 |
7 files changed, 27 insertions, 4 deletions
@@ -1,3 +1,18 @@ +2008-07-23 Michael Smith <msmith@songbirdnest.com> + + * gst/festival/gstfestival.c: + Guard unistd.h with HAVE_UNISTD_H + * gst/modplug/libmodplug/load_it.cpp: + * gst/modplug/libmodplug/sndfile.cpp: + * gst/modplug/libmodplug/sndfile.h: + * gst/modplug/libmodplug/stdafx.h: + Support for compiling with MSVC: use _MSC_VER for detecting MSVC instead + of MSC_VER. Make CanPackSamples take the type it's passed. Change scope + of a variable in load_it.cpp to MSVC's scoping rules. + * gst/sdp/gstsdpdemux.c: + Guard unistd.h with HAVE_UNISTD_H + Fixes #544457. + 2008-07-22 Stefan Kost <ensonic@users.sf.net> * ext/timidity/gsttimidity.c: diff --git a/gst/festival/gstfestival.c b/gst/festival/gstfestival.c index d67c5403..7d919b90 100644 --- a/gst/festival/gstfestival.c +++ b/gst/festival/gstfestival.c @@ -84,7 +84,11 @@ #include <stdio.h> #include <stdlib.h> + +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif + #include <ctype.h> #include <string.h> #include <sys/types.h> diff --git a/gst/modplug/libmodplug/load_it.cpp b/gst/modplug/libmodplug/load_it.cpp index d6222e92..0dac75d6 100644 --- a/gst/modplug/libmodplug/load_it.cpp +++ b/gst/modplug/libmodplug/load_it.cpp @@ -869,7 +869,8 @@ BOOL CSoundFile::SaveIT(LPCSTR lpszFileName, UINT nPacking) { MODCOMMAND *pzc = Patterns[npat]; UINT nz = PatternSize[npat] * m_nChannels; - for (UINT iz=0; iz<nz; iz++) + INT iz; + for (iz=0; iz<nz; iz++) { if ((pzc[iz].note) || (pzc[iz].instr) || (pzc[iz].volcmd) || (pzc[iz].command)) break; diff --git a/gst/modplug/libmodplug/sndfile.cpp b/gst/modplug/libmodplug/sndfile.cpp index 23eeac7e..aca357f0 100644 --- a/gst/modplug/libmodplug/sndfile.cpp +++ b/gst/modplug/libmodplug/sndfile.cpp @@ -820,7 +820,7 @@ UINT CSoundFile::PackSample(int &sample, int next) } -BOOL CSoundFile::CanPackSample(LPSTR pSample, UINT nLen, UINT nPacking, BYTE *result) +BOOL CSoundFile::CanPackSample(signed char * pSample, UINT nLen, UINT nPacking, BYTE *result) //----------------------------------------------------------------------------------- { int pos, old, oldpos, besttable = 0; diff --git a/gst/modplug/libmodplug/sndfile.h b/gst/modplug/libmodplug/sndfile.h index 577bc696..863d866f 100644 --- a/gst/modplug/libmodplug/sndfile.h +++ b/gst/modplug/libmodplug/sndfile.h @@ -730,7 +730,7 @@ public: /* Read/Write sample functions */ signed char GetDeltaValue(signed char prev, UINT n) const { return (signed char)(prev + CompressionTable[n & 0x0F]); } UINT PackSample(int &sample, int next); - BOOL CanPackSample(LPSTR pSample, UINT nLen, UINT nPacking, BYTE *result=NULL); + BOOL CanPackSample(signed char * pSample, UINT nLen, UINT nPacking, BYTE *result=NULL); UINT ReadSample(MODINSTRUMENT *pIns, UINT nFlags, LPCSTR pMemFile, DWORD dwMemLength); BOOL DestroySample(UINT nSample); BOOL DestroyInstrument(UINT nInstr); diff --git a/gst/modplug/libmodplug/stdafx.h b/gst/modplug/libmodplug/stdafx.h index cd2bb5d0..b1463fe5 100644 --- a/gst/modplug/libmodplug/stdafx.h +++ b/gst/modplug/libmodplug/stdafx.h @@ -10,7 +10,7 @@ #define _STDAFX_H_ -#ifdef MSC_VER +#ifdef _MSC_VER #pragma warning (disable:4201) #pragma warning (disable:4514) diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c index 303452c8..be34a22a 100644 --- a/gst/sdp/gstsdpdemux.c +++ b/gst/sdp/gstsdpdemux.c @@ -47,7 +47,10 @@ #include "config.h" #endif +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif + #include <stdlib.h> #include <string.h> #include <locale.h> |