From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:41
|
Update of /cvsroot/sp-tk/SPTK/src/bin/lspdf In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/lspdf Modified Files: lspdf.c _lspdf.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: _lspdf.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/lspdf/_lspdf.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** _lspdf.c 8 Oct 2007 16:49:30 -0000 1.9 --- _lspdf.c 16 Oct 2007 02:21:03 -0000 1.10 *************** *** 69,75 **** #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 69,75 ---- #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif Index: lspdf.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/lspdf/lspdf.c,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** lspdf.c 9 Oct 2007 10:07:07 -0000 1.20 --- lspdf.c 16 Oct 2007 02:21:00 -0000 1.21 *************** *** 82,92 **** #include <stdio.h> #include <stdlib.h> ! #include <string.h> #include <math.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 82,101 ---- #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 ! #include <math.h> #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif |