mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
FS-4657 --resolve update libsndfile to its latest master
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 1999-2009 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 1999-2012 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU General Public License as published by
|
||||
@@ -26,11 +26,15 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if OS_IS_WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <sndfile.h>
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
#define BUFFER_SIZE (1<<15)
|
||||
#define BUFFER_SIZE (1 << 15)
|
||||
#define SHORT_BUFFER (256)
|
||||
|
||||
static void
|
||||
@@ -203,8 +207,22 @@ error_close_test (void)
|
||||
fclose (file) ;
|
||||
|
||||
if (sf_close (sndfile) == 0)
|
||||
{ printf ("\n\nLine %d : sf_close should not have returned zero.\n", __LINE__) ;
|
||||
{
|
||||
#if OS_IS_WIN32
|
||||
OSVERSIONINFOEX osvi ;
|
||||
|
||||
memset (&osvi, 0, sizeof (OSVERSIONINFOEX)) ;
|
||||
osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFOEX) ;
|
||||
|
||||
if (GetVersionEx ((OSVERSIONINFO *) &osvi))
|
||||
{ printf ("\n\nLine %d : sf_close should not have returned zero.\n", __LINE__) ;
|
||||
printf ("\nHowever, this is a known bug in version %d.%d of windows so we'll ignore it.\n\n",
|
||||
(int) osvi.dwMajorVersion, (int) osvi.dwMinorVersion) ;
|
||||
} ;
|
||||
#else
|
||||
printf ("\n\nLine %d : sf_close should not have returned zero.\n", __LINE__) ;
|
||||
exit (1) ;
|
||||
#endif
|
||||
} ;
|
||||
|
||||
unlink (filename) ;
|
||||
|
Reference in New Issue
Block a user