From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:32
|
Update of /cvsroot/sp-tk/SPTK/src/bin/gc2gc In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/gc2gc Modified Files: _gc2gc.c gc2gc.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: gc2gc.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/gc2gc/gc2gc.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** gc2gc.c 9 Oct 2007 10:07:06 -0000 1.18 --- gc2gc.c 16 Oct 2007 02:20:55 -0000 1.19 *************** *** 86,95 **** #include <stdio.h> #include <stdlib.h> ! #include <string.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 86,104 ---- #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 Index: _gc2gc.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/gc2gc/_gc2gc.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** _gc2gc.c 8 Oct 2007 16:49:28 -0000 1.9 --- _gc2gc.c 16 Oct 2007 02:20:55 -0000 1.10 *************** *** 68,74 **** #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 68,74 ---- #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif |