From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:38
|
Update of /cvsroot/sp-tk/SPTK/src/bin/histogram In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/histogram Modified Files: _histogram.c histogram.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: _histogram.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/histogram/_histogram.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** _histogram.c 8 Oct 2007 16:49:27 -0000 1.11 --- _histogram.c 16 Oct 2007 02:20:54 -0000 1.12 *************** *** 58,64 **** #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 58,64 ---- #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif Index: histogram.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/histogram/histogram.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** histogram.c 9 Oct 2007 10:07:09 -0000 1.18 --- histogram.c 16 Oct 2007 02:20:54 -0000 1.19 *************** *** 79,88 **** #include <stdio.h> #include <stdlib.h> ! #include <string.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 79,97 ---- #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 |