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