Update of /cvsroot/audacity/lib-src/libsndfile
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13523
Added Files:
portability.patch
Log Message:
Patch (By Leyland) to make the code properly portable, including to native
Win32 builds. Both changes replicate portability code already present elsewhere
in the package.
--- NEW FILE: portability.patch ---
Index: common.c
===================================================================
RCS file: /cvsroot/audacity/lib-src/libsndfile/src/common.c,v
retrieving revision 1.11
diff -u -r1.11 common.c
--- common.c 8 Feb 2009 18:44:57 -0000 1.11
+++ common.c 9 Feb 2009 03:58:15 -0000
@@ -23,7 +23,9 @@
#include <ctype.h>
#include <math.h>
#include <time.h>
+#if defined(HAVE_SYS_TIME_H)
#include <sys/time.h>
+#endif
#include "sndfile.h"
#include "sfendian.h"
Index: mpc2k.c
===================================================================
RCS file: /cvsroot/audacity/lib-src/libsndfile/src/mpc2k.c,v
retrieving revision 1.1
diff -u -r1.1 mpc2k.c
--- mpc2k.c 8 Feb 2009 18:44:57 -0000 1.1
+++ mpc2k.c 9 Feb 2009 04:14:07 -0000
@@ -134,7 +134,7 @@
if (psf->is_pipe == SF_FALSE)
psf_fseek (psf, 0, SEEK_SET) ;
- snprintf (sample_name, sizeof (sample_name), "%s ",
psf->filename) ;
+ LSF_SNPRINTF (sample_name, sizeof (sample_name), "%s
", psf->filename) ;
psf_binheader_writef (psf, "e11b", 1, 4, sample_name, make_size_t
(HEADER_NAME_LEN)) ;
psf_binheader_writef (psf, "e111", 100, 0, (psf->sf.channels - 1) & 1) ;
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs