From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:39
|
Update of /cvsroot/sp-tk/SPTK/src/bin/fig+fdrw In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/fig+fdrw Modified Files: fdrw.c fig.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: fig.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/fig+fdrw/fig.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** fig.c 9 Oct 2007 09:14:34 -0000 1.18 --- fig.c 16 Oct 2007 02:20:59 -0000 1.19 *************** *** 77,87 **** /* Standard C Libraries */ #include <stdio.h> ! #include <string.h> #include <stdlib.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 77,96 ---- /* 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> #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif Index: fdrw.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/fig+fdrw/fdrw.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** fdrw.c 9 Oct 2007 10:07:07 -0000 1.19 --- fdrw.c 16 Oct 2007 02:20:59 -0000 1.20 *************** *** 82,91 **** #include <stdio.h> #include <stdlib.h> ! #include <string.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 82,100 ---- #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 |