mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-24 23:13:42 +02:00
Upgrades libsndfile to 1.0.24.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 1999-2009 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 1999-2011 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
|
||||
@@ -16,24 +16,27 @@
|
||||
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "sfconfig.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <sndfile.h>
|
||||
|
||||
#define BUFFER_SIZE (256)
|
||||
|
||||
static char strbuffer [BUFFER_SIZE] ;
|
||||
|
||||
int
|
||||
main (void)
|
||||
{ sf_command (NULL, SFC_GET_LIB_VERSION, strbuffer, sizeof (strbuffer)) ;
|
||||
{ static char strbuffer [BUFFER_SIZE] ;
|
||||
const char * ver ;
|
||||
|
||||
sf_command (NULL, SFC_GET_LIB_VERSION, strbuffer, sizeof (strbuffer)) ;
|
||||
ver = sf_version_string () ;
|
||||
|
||||
if (strcmp (ver, strbuffer) != 0)
|
||||
{ printf ("Version mismatch : '%s' != '%s'\n\n", ver, strbuffer) ;
|
||||
exit (1) ;
|
||||
} ;
|
||||
|
||||
printf ("%s", strbuffer) ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user