From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:34
|
Update of /cvsroot/sp-tk/SPTK/src/bin/dfs In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/dfs Modified Files: dfs.c _dfs.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: _dfs.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/dfs/_dfs.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** _dfs.c 8 Oct 2007 16:49:28 -0000 1.8 --- _dfs.c 16 Oct 2007 02:20:55 -0000 1.9 *************** *** 70,76 **** #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 70,76 ---- #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif Index: dfs.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/dfs/dfs.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** dfs.c 9 Oct 2007 10:07:02 -0000 1.17 --- dfs.c 16 Oct 2007 02:20:55 -0000 1.18 *************** *** 76,85 **** #include <stdlib.h> #include <ctype.h> ! #include <string.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 76,94 ---- #include <stdlib.h> #include <ctype.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 |