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