From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:43
|
Update of /cvsroot/sp-tk/SPTK/src/bin/vopr In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/vopr Modified Files: vopr.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: vopr.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/vopr/vopr.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** vopr.c 9 Oct 2007 10:07:08 -0000 1.18 --- vopr.c 16 Oct 2007 02:21:08 -0000 1.19 *************** *** 76,80 **** /* Standard C Libraries */ #include <stdio.h> ! #include <string.h> #include <stdlib.h> #include <ctype.h> --- 76,89 ---- /* Standard C Libraries */ #include <stdio.h> ! ! #ifdef HAVE_STRING_H ! # include <string.h> ! #else ! # include <strings.h> ! # ifndef HAVE_STRRCHR ! # define strrchr rindex ! # endif ! #endif ! #include <stdlib.h> #include <ctype.h> *************** *** 82,88 **** #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 91,97 ---- #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif |