From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:44
|
Update of /cvsroot/sp-tk/SPTK/src/bin/echo2 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/echo2 Modified Files: echo2.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: echo2.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/echo2/echo2.c,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** echo2.c 8 Oct 2007 16:49:31 -0000 1.15 --- echo2.c 16 Oct 2007 02:21:09 -0000 1.16 *************** *** 67,76 **** #include <stdio.h> #include <stdlib.h> ! #include <string.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 67,85 ---- #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 ! #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif |