From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:24
|
Update of /cvsroot/sp-tk/SPTK/src/bin/fftcep In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/fftcep Modified Files: _fftcep.c fftcep.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: _fftcep.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/fftcep/_fftcep.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** _fftcep.c 8 Oct 2007 16:49:35 -0000 1.8 --- _fftcep.c 16 Oct 2007 02:21:20 -0000 1.9 *************** *** 69,75 **** #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 69,75 ---- #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif Index: fftcep.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/fftcep/fftcep.c,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** fftcep.c 9 Oct 2007 10:07:09 -0000 1.20 --- fftcep.c 16 Oct 2007 02:21:20 -0000 1.21 *************** *** 83,93 **** #include <stdio.h> #include <stdlib.h> ! #include <string.h> #include <math.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 83,102 ---- #include <stdio.h> #include <stdlib.h> ! ! #ifdef HAVE_STRING_H ! # include <string.h> ! #else ! # include <strings.h> ! # ifndef HAVE_STRRCHR ! # define strrchr rindex ! # endif ! #endif ! #include <math.h> #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif |