From cbc867455fc84c1d7abc3f1b5924c1bb17140f9e Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 24 Jul 2008 00:32:37 +0000 Subject: [PATCH] gst/festival/gstfestival.c: Guard unistd.h with HAVE_UNISTD_H Original commit message from CVS: * 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. --- ChangeLog | 15 +++++++++++++++ gst/festival/gstfestival.c | 4 ++++ gst/modplug/libmodplug/load_it.cpp | 3 ++- gst/modplug/libmodplug/sndfile.cpp | 2 +- gst/modplug/libmodplug/sndfile.h | 2 +- gst/modplug/libmodplug/stdafx.h | 2 +- gst/sdp/gstsdpdemux.c | 3 +++ 7 files changed, 27 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4c510fcf5..5618efbc86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2008-07-23 Michael Smith + + * 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 * ext/timidity/gsttimidity.c: diff --git a/gst/festival/gstfestival.c b/gst/festival/gstfestival.c index d67c5403bb..7d919b90f8 100644 --- a/gst/festival/gstfestival.c +++ b/gst/festival/gstfestival.c @@ -84,7 +84,11 @@ #include #include + +#ifdef HAVE_UNISTD_H #include +#endif + #include #include #include diff --git a/gst/modplug/libmodplug/load_it.cpp b/gst/modplug/libmodplug/load_it.cpp index d6222e9254..0dac75d64a 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 +#endif + #include #include #include