From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:23
|
Update of /cvsroot/sp-tk/SPTK/src/bin/c2ir In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/c2ir Modified Files: c2ir.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: c2ir.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/c2ir/c2ir.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** c2ir.c 9 Oct 2007 10:07:08 -0000 1.19 --- c2ir.c 16 Oct 2007 02:21:20 -0000 1.20 *************** *** 73,82 **** #include <stdio.h> #include <stdlib.h> ! #include <string.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 73,91 ---- #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 |