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