From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:38
|
Update of /cvsroot/sp-tk/SPTK/src/bin/spec In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/spec Modified Files: spec.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: spec.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/spec/spec.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** spec.c 9 Oct 2007 10:07:02 -0000 1.17 --- spec.c 16 Oct 2007 02:20:57 -0000 1.18 *************** *** 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 |